From 0365722f8549ee93918be99da1b9f901cf0b2c8d Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 13 Mar 2020 01:05:20 +0100 Subject: API documentation for KVision 3.5.2 --- .../-upload-input/-init-.html | 2 +- .../-upload-input/after-destroy.html | 3 +- .../-upload-input/after-insert.html | 3 +- .../-upload-input/allowed-file-extensions.html | 2 +- .../-upload-input/allowed-file-types.html | 2 +- .../-upload-input/blur.html | 3 +- .../-upload-input/browse-on-zone-click.html | 2 +- .../-upload-input/cancel.html | 2 +- .../-upload-input/clear-input.html | 2 +- .../-upload-input/disabled.html | 3 +- .../-upload-input/drop-zone-enabled.html | 2 +- .../-upload-input/explorer-theme.html | 2 +- .../-upload-input/focus.html | 3 +- .../-upload-input/get-native-file.html | 2 +- .../-upload-input/get-sn-attrs.html | 3 +- .../-upload-input/get-sn-class.html | 3 +- .../-upload-input/get-value-as-string.html | 2 +- .../-upload-input/index.html | 773 +++++---------------- .../-upload-input/lock.html | 2 +- .../-upload-input/multiple.html | 2 +- .../-upload-input/name.html | 3 +- .../-upload-input/prefer-iconic-preview.html | 2 +- .../-upload-input/render.html | 3 +- .../-upload-input/required.html | 2 +- .../-upload-input/reset-input.html | 2 +- .../-upload-input/show-browse.html | 2 +- .../-upload-input/show-cancel.html | 2 +- .../-upload-input/show-caption.html | 2 +- .../-upload-input/show-preview.html | 2 +- .../-upload-input/show-remove.html | 2 +- .../-upload-input/show-upload.html | 2 +- .../-upload-input/size.html | 3 +- .../-upload-input/unlock.html | 2 +- .../-upload-input/upload-extra-data.html | 2 +- .../-upload-input/upload-url.html | 2 +- .../-upload-input/upload.html | 2 +- .../-upload-input/validation-status.html | 3 +- .../-upload-input/value.html | 2 +- 38 files changed, 192 insertions(+), 666 deletions(-) (limited to 'api/pl.treksoft.kvision.form.upload/-upload-input') diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/-init-.html b/api/pl.treksoft.kvision.form.upload/-upload-input/-init-.html index 9ce79234..6a9cae93 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/-init-.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/-init-.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / <init>

<init>

- +(js) UploadInput(uploadUrl: String? = null, multiple: Boolean = false, classes: Set<String> = setOf())

Parameters

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/after-destroy.html b/api/pl.treksoft.kvision.form.upload/-upload-input/after-destroy.html index 0f0e6683..ccbaf5e8 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/after-destroy.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/after-destroy.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / afterDestroy

afterDestroy

- +(js) protected open fun afterDestroy(): Unit -

Overrides Widget.afterDestroy

Method called after destroying Snabbdom vnode.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/after-insert.html b/api/pl.treksoft.kvision.form.upload/-upload-input/after-insert.html index a1587742..9cbe576b 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/after-insert.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/after-insert.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / afterInsert

afterInsert

- +(js) protected open fun afterInsert(node: VNode): Unit -

Overrides Widget.afterInsert

Method called after inserting Snabbdom vnode into the DOM.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/allowed-file-extensions.html b/api/pl.treksoft.kvision.form.upload/-upload-input/allowed-file-extensions.html index ab3baca7..eabce90d 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/allowed-file-extensions.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/allowed-file-extensions.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / allowedFileExtensions

allowedFileExtensions

- +(js) var allowedFileExtensions: Set<String>?

Allowed file extensions.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/allowed-file-types.html b/api/pl.treksoft.kvision.form.upload/-upload-input/allowed-file-types.html index 37963eec..a0ec7b47 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/allowed-file-types.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/allowed-file-types.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / allowedFileTypes

allowedFileTypes

- +(js) var allowedFileTypes: Set<String>?

Allowed file types.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/blur.html b/api/pl.treksoft.kvision.form.upload/-upload-input/blur.html index 3ae46f6e..e2e44ac3 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/blur.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/blur.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / blur

blur

- +(js) open fun blur(): Unit -

Overrides FormInput.blur

Makes the input element blur.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/browse-on-zone-click.html b/api/pl.treksoft.kvision.form.upload/-upload-input/browse-on-zone-click.html index 6e60de7c..77cfa99a 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/browse-on-zone-click.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/browse-on-zone-click.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / browseOnZoneClick

browseOnZoneClick

- +(js) var browseOnZoneClick: Boolean

Determines if the click on the preview zone opens file browse window.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/cancel.html b/api/pl.treksoft.kvision.form.upload/-upload-input/cancel.html index 808fd4f6..9e3e8435 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/cancel.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/cancel.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / cancel

cancel

- +(js) open fun cancel(): Unit

Cancel an ongoing ajax upload (only for ajax mode).

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/clear-input.html b/api/pl.treksoft.kvision.form.upload/-upload-input/clear-input.html index a814b493..547ca2f3 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/clear-input.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/clear-input.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / clearInput

clearInput

- +(js) open fun clearInput(): Unit

Clears the file input control (including the native input).

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/disabled.html b/api/pl.treksoft.kvision.form.upload/-upload-input/disabled.html index 17d36121..477a4142 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/disabled.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/disabled.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / disabled

disabled

- +(js) open var disabled: Boolean -

Overrides FormInput.disabled

Determines if the field is disabled.

Getter

Determines if the field is disabled.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/drop-zone-enabled.html b/api/pl.treksoft.kvision.form.upload/-upload-input/drop-zone-enabled.html index b8488a76..91b89b33 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/drop-zone-enabled.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/drop-zone-enabled.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / dropZoneEnabled

dropZoneEnabled

- +(js) var dropZoneEnabled: Boolean

Determines if Drag&Drop zone is enabled.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/explorer-theme.html b/api/pl.treksoft.kvision.form.upload/-upload-input/explorer-theme.html index 0b99c0b9..b6d0f4b0 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/explorer-theme.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/explorer-theme.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / explorerTheme

explorerTheme

- +(js) var explorerTheme: Boolean

Determines if the explorer theme is used.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/focus.html b/api/pl.treksoft.kvision.form.upload/-upload-input/focus.html index 83144276..0407a1c3 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/focus.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/focus.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / focus

focus

- +(js) open fun focus(): Unit -

Overrides FormInput.focus

Makes the input element focused.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/get-native-file.html b/api/pl.treksoft.kvision.form.upload/-upload-input/get-native-file.html index 2061d320..30d9f101 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/get-native-file.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/get-native-file.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / getNativeFile

getNativeFile

- +(js) fun getNativeFile(kFile: KFile): File?

Returns the native JavaScript File object.

Parameters

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/get-sn-attrs.html b/api/pl.treksoft.kvision.form.upload/-upload-input/get-sn-attrs.html index 022a8470..9336bcbd 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/get-sn-attrs.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/get-sn-attrs.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / getSnAttrs

getSnAttrs

- +(js) protected open fun getSnAttrs(): List<StringPair> -

Overrides Widget.getSnAttrs

Returns list of element attributes in the form of a List.

Return
list of element attributes

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/get-sn-class.html b/api/pl.treksoft.kvision.form.upload/-upload-input/get-sn-class.html index 36ee4361..820c26d7 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/get-sn-class.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/get-sn-class.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / getSnClass

getSnClass

- +(js) protected open fun getSnClass(): List<StringBoolPair> -

Overrides Widget.getSnClass

Returns list of CSS class names for current widget in the form of a List.

Return
list of CSS class names

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/get-value-as-string.html b/api/pl.treksoft.kvision.form.upload/-upload-input/get-value-as-string.html index 78e56668..d8fe4943 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/get-value-as-string.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/get-value-as-string.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / getValueAsString

getValueAsString

- +(js) fun getValueAsString(): String?

Returns the value of the file input control as a String.

Return
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/index.html b/api/pl.treksoft.kvision.form.upload/-upload-input/index.html index 53010c07..88d46a15 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/index.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/index.html @@ -8,14 +8,15 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput

UploadInput

-open class UploadInput : Widget, FormInput +(js) open class UploadInput : Widget, FormInput

The file upload component.

Constructors

@@ -27,303 +28,193 @@ +var allowedFileExtensions: Set<String>? +var allowedFileTypes: Set<String>? +var browseOnZoneClick: Boolean +open var disabled: Boolean +var dropZoneEnabled: Boolean +var explorerTheme: Boolean +var multiple: Boolean +open var name: String? +var preferIconicPreview: Boolean +var required: Boolean +var showBrowse: Boolean +var showCancel: Boolean +var showCaption: Boolean +var showPreview: Boolean +var showRemove: Boolean +var showUpload: Boolean +open var size: InputSize? +var uploadExtraData: ((String, Int) -> dynamic)? +var uploadUrl: String? +open var validationStatus: ValidationStatus? - - -
-

<init>

+(js) +

<init>

UploadInput(uploadUrl: String? = null, multiple: Boolean = false, classes: Set<String> = setOf())
-

allowedFileExtensions

+(js) +

allowedFileExtensions

-var allowedFileExtensions: Set<String>?

Allowed file extensions.

-
-

allowedFileTypes

+(js) +

allowedFileTypes

-var allowedFileTypes: Set<String>?

Allowed file types.

-
-

browseOnZoneClick

+(js) +

browseOnZoneClick

-var browseOnZoneClick: Boolean

Determines if the click on the preview zone opens file browse window.

-
-

disabled

+(js) +

disabled

-open var disabled: Boolean

Determines if the field is disabled.

-
-

dropZoneEnabled

+(js) +

dropZoneEnabled

-var dropZoneEnabled: Boolean

Determines if Drag&Drop zone is enabled.

-
-

explorerTheme

+(js) +

explorerTheme

-var explorerTheme: Boolean

Determines if the explorer theme is used.

-
-

multiple

+(js) +

multiple

-var multiple: Boolean

Determines if multiple file upload is supported.

-
-

name

+(js) +

name

-open var name: String?

The name attribute of the generated HTML input element.

-
-

preferIconicPreview

+(js) +

preferIconicPreview

-var preferIconicPreview: Boolean

Determines if the iconic preview is prefered.

-
-

required

+(js) +

required

-var required: Boolean

Determines if the input selection is required.

-
-

showBrowse

+(js) +

showBrowse

-var showBrowse: Boolean

Determines if the file browse button is shown.

-
-

showCancel

+(js) +

showCancel

-var showCancel: Boolean

Determines if the cancel button is shown.

-
-

showCaption

+(js) +

showCaption

-var showCaption: Boolean

Determines if the caption is shown.

-
-

showPreview

+(js) +

showPreview

-var showPreview: Boolean

Determines if the preview is shown.

-
-

showRemove

+(js) +

showRemove

-var showRemove: Boolean

Determines if the remove button is shown.

-
-

showUpload

+(js) +

showUpload

-var showUpload: Boolean

Determines if the upload button is shown.

-
-

size

+(js) +

size

-open var size: InputSize?

The size of the input (currently not working)

-
-

uploadExtraData

+(js) +

uploadExtraData

-var uploadExtraData: ((String, Int) -> dynamic)?

The extra data that will be passed as data to the AJAX server call via POST.

-
-

uploadUrl

+(js) +

uploadUrl

-var uploadUrl: String?

The optional URL for the upload processing action. If not set the upload button action will default to form submission.

-
-

validationStatus

+(js) +

validationStatus

-open var validationStatus: ValidationStatus?

The validation status of the input.

-
-

value

+(js) +

value

-var value: List<KFile>?

File input value.

-
-

Inherited Properties

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +var value: List<KFile>?
-

draggable

-
-var draggable: Boolean? -

Determines if the current widget is draggable.

-
-

eventTarget

-
-var eventTarget: Widget?
-

id

-
-var id: String? -

An ID attribute of generated HTML element.

-
-

lastLanguage

-
-var lastLanguage: String?
-

parent

-
-open var parent: Container? -

Parent of the current component.

-
-

popoverOptions

-
-var popoverOptions: PopoverOptions?
-

role

-
-var role: String? -

A role attribute of generated HTML element.

-
-

surroundingSpan

-
-var surroundingSpan: Boolean
-

tabindex

-
-var tabindex: Int? -

A tabindex attribute of generated HTML element.

-
-

title

-
-var title: String? -

A title attribute of generated HTML element.

-
-

tooltipOptions

-
-var tooltipOptions: TooltipOptions?
-

visible

-
-open var visible: Boolean -

Visibility state of the current component.

-
-

vnode

-
-var vnode: VNode?
@@ -332,498 +223,138 @@ If not set the upload button action will default to form submission.

-

afterDestroy

+(js) +

afterDestroy

-open fun afterDestroy(): Unit

Method called after destroying Snabbdom vnode.

- +open fun afterDestroy(): Unit -

afterInsert

+(js) +

afterInsert

-open fun afterInsert(node: VNode): Unit

Method called after inserting Snabbdom vnode into the DOM.

- +open fun afterInsert(node: VNode): Unit -

blur

+(js) +

blur

-open fun blur(): Unit

Makes the input element blur.

- +open fun blur(): Unit -

cancel

+(js) +

cancel

-open fun cancel(): Unit

Cancel an ongoing ajax upload (only for ajax mode).

- +open fun cancel(): Unit -

clearInput

+(js) +

clearInput

-open fun clearInput(): Unit

Clears the file input control (including the native input).

- +open fun clearInput(): Unit -

focus

+(js) +

focus

-open fun focus(): Unit

Makes the input element focused.

- +open fun focus(): Unit -

getNativeFile

+(js) +

getNativeFile

-fun getNativeFile(kFile: KFile): File?

Returns the native JavaScript File object.

- +fun getNativeFile(kFile: KFile): File? -

getSnAttrs

+(js) +

getSnAttrs

-open fun getSnAttrs(): List<StringPair>

Returns list of element attributes in the form of a List.

- +open fun getSnAttrs(): List<StringPair> -

getSnClass

+(js) +

getSnClass

-open fun getSnClass(): List<StringBoolPair>

Returns list of CSS class names for current widget in the form of a List.

- +open fun getSnClass(): List<StringBoolPair> -

getValueAsString

+(js) +

getValueAsString

-fun getValueAsString(): String?

Returns the value of the file input control as a String.

- +fun getValueAsString(): String? -

lock

+(js) +

lock

-open fun lock(): Unit

Locks the file input (disabling all buttons except a cancel button).

- +open fun lock(): Unit -

render

+(js) +

render

-open fun render(): VNode

Renders current component as a Snabbdom vnode.

- +open fun render(): VNode -

resetInput

+(js) +

resetInput

-open fun resetInput(): Unit

Resets the file input control.

- +open fun resetInput(): Unit -

unlock

+(js) +

unlock

-open fun unlock(): Unit

Unlocks the file input.

- +open fun unlock(): Unit -

upload

+(js) +

upload

-open fun upload(): Unit

Trigger ajax upload (only for ajax mode).

- - - - -

Inherited Functions

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +open fun upload(): Unit
-

addCssClass

-
-open fun addCssClass(css: String): Widget -

Adds given value to the set of CSS classes generated in html code of current component.

-
-

addCssStyle

-
-open fun addCssStyle(css: Style): Widget -

Adds given style object to the set of CSS classes generated in html code of current component.

-
-

addSurroundingCssClass

-
-open fun addSurroundingCssClass(css: String): Widget -

Adds given value to the set of CSS classes generated in html code of parent component.

-
-

addSurroundingCssStyle

-
-open fun addSurroundingCssStyle(css: Style): Widget -

Adds given style object to the set of CSS classes generated in html code of parent component.

-
-

afterCreate

-
-open fun afterCreate(node: VNode): Unit -

Method called after creating Snabbdom vnode.

-
-

clearDragDropData

-
-open fun clearDragDropData(): Unit -

Clears D&D data for the current widget. It also makes it not draggable.

-
-

disablePopover

-
-open fun disablePopover(): Widget -

Disables popover for the current widget.

-
-

disableTooltip

-
-open fun disableTooltip(): Widget -

Disables tooltip for the current widget.

-
-

dispatchEvent

-
-open fun dispatchEvent(type: String, eventInitDict: CustomEventInit): Boolean?
-

enablePopover

-
-open fun enablePopover(options: PopoverOptions = PopoverOptions()): Widget -

Enables popover for the current widget.

-
-

enableTooltip

-
-open fun enableTooltip(options: TooltipOptions = TooltipOptions()): Widget -

Enables tooltip for the current widget.

-
-

getAttribute

-
-open fun getAttribute(name: String): String? -

Returns the value of an additional attribute.

-
-

getElement

-
-open fun getElement(): Node? -

Returns DOM element bound to the current component.

-
-

getElementJQuery

-
-open fun getElementJQuery(): JQuery? -

Returns JQuery element bound to the current component.

-
-

getElementJQueryD

-
-open fun getElementJQueryD(): dynamic -

Returns JQuery element bound to the current component as a dynamic type.

-
-

getSnHooks

-
-open fun getSnHooks(): Hooks? -

Returns list of hooks in the form of a Snabbdom Hooks object.

-
-

getSnOn

-
-open fun getSnOn(): On? -

Returns list of event handlers in the form of a Snabbdom On object.

-
-

hide

-
-open fun hide(): Widget -

Makes current widget invisible.

-
-

hidePopover

-
-open fun hidePopover(): Widget -

Hides popover for the current widget.

-
-

hideTooltip

-
-open fun hideTooltip(): Widget -

Hides tooltip for the current widget.

-
-

refreshOnUpdate

-
-fun <T> refreshOnUpdate(refreshFunction: (T) -> Unit = { this.refresh() }): Widget.RefreshDelegateProvider<T>
-fun <T> refreshOnUpdate(initialValue: T, refreshFunction: (T) -> Unit = { this.refresh() }): Widget.RefreshDelegateProvider<T>
-

removeAttribute

-
-open fun removeAttribute(name: String): Widget -

Removes the value of additional attribute.

-
-

removeCssClass

-
-open fun removeCssClass(css: String): Widget -

Removes given value from the set of CSS classes generated in html code of current component.

-
-

removeCssStyle

-
-open fun removeCssStyle(css: Style): Widget -

Removes given style object from the set of CSS classes generated in html code of current component.

-
-

removeEventListener

-
-open fun removeEventListener(id: Int): Widget -

Removes event listener from current widget.

-
-

removeEventListeners

-
-open fun removeEventListeners(): Widget -

Removes all event listeners from current widget.

-
-

removeSurroundingCssClass

-
-open fun removeSurroundingCssClass(css: String): Widget -

Removes given value from the set of CSS classes generated in html code of parent component.

-
-

removeSurroundingCssStyle

-
-open fun removeSurroundingCssStyle(css: Style): Widget -

Removes given style object from the set of CSS classes generated in html code of parent component.

-
-

render

-
-open fun render(elementName: String): VNode
-open fun render(elementName: String, children: Array<dynamic>): VNode -

Renders current component as a Snabbdom vnode.

-
-

setAttribute

-
-open fun setAttribute(name: String, value: String): Widget -

Sets the value of additional attribute.

-
-

setDragDropData

-
-open fun setDragDropData(format: String, data: String): Unit -

Sets D&D data for the current widget. It also makes it draggable.

-
-

setDropTarget

-
-open fun setDropTarget(format: String, callback: (DragEvent) -> Unit): Unit
-open fun setDropTarget(formats: Set<String>? = null, callback: (DragEvent) -> Unit): Unit -

Sets the current widget as a D&D drop target.

-
-

setDropTargetData

-
-open fun setDropTargetData(format: String, callback: (String?) -> Unit): Unit -

Sets the current widget as a D&D drop target with helper callback accepting String data.

-
-

setEventListener

-
-open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Int -

Sets an event listener for current widget, keeping the actual type of component.

-
-

show

-
-open fun show(): Widget -

Makes current widget visible.

-
-

showPopover

-
-open fun showPopover(): Widget -

Shows popover for the current widget.

-
-

showTooltip

-
-open fun showTooltip(): Widget -

Shows tooltip for the current widget.

-
-

singleRender

-
-fun <T> singleRender(block: () -> T): T
-

toggleVisible

-
-open fun toggleVisible(): Widget -

Toggles visibility of current widget.

-
-

translate

-
-fun translate(text: String?): String?
@@ -832,24 +363,27 @@ If not set the upload button action will default to form submission.

-

changeFlow

+(js) +

changeFlow

-val <T : Widget> T.changeFlow: <ERROR CLASS><T> +val <T : Widget> T.changeFlow: Flow<T> -

clickFlow

+(js) +

clickFlow

-val <T : Widget> T.clickFlow: <ERROR CLASS><T> +val <T : Widget> T.clickFlow: Flow<T> -

inputFlow

+(js) +

inputFlow

-val <T : Widget> T.inputFlow: <ERROR CLASS><T> +val <T : Widget> T.inputFlow: Flow<T> @@ -858,123 +392,126 @@ If not set the upload button action will default to form submission.

-

addBsBgColor

+(js) +

addBsBgColor

fun Component.addBsBgColor(bsBgColor: BsBgColor): Unit -

addBsBorder

+(js) +

addBsBorder

fun Component.addBsBorder(vararg bsBorder: BsBorder): Unit -

addBsClearfix

+(js) +

addBsClearfix

fun Component.addBsClearfix(): Unit -

addBsColor

+(js) +

addBsColor

fun Component.addBsColor(bsColor: BsColor): Unit -

addBsRounded

+(js) +

addBsRounded

fun Component.addBsRounded(vararg bsRounded: BsRounded): Unit -

contextMenu

+(js) +

contextMenu

-fun Widget.contextMenu(fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null): ContextMenu

DSL builder extension function.

- +fun Widget.contextMenu(fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null): ContextMenu -

createInstance

+(js) +

eventFlow

-fun <T> Any?.createInstance(vararg args: dynamic): T -

Helper function for creating JavaScript objects from dynamic constructors.

- +fun <T : Widget> T.eventFlow(event: String): Flow<Pair<T, Event>> -

eventFlow

+(js) +

onEvent

-fun <T : Widget> T.eventFlow(event: String): <ERROR CLASS><Pair<T, Event>> +fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Int -

onEvent

- - -fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Int - - - -

removeBsBgColor

+(js) +

removeBsBgColor

fun Component.removeBsBgColor(bsBgColor: BsBgColor): Unit -

removeBsBorder

+(js) +

removeBsBorder

fun Component.removeBsBorder(vararg bsBorder: BsBorder): Unit -

removeBsClearfix

+(js) +

removeBsClearfix

fun Component.removeBsClearfix(): Unit -

removeBsColor

+(js) +

removeBsColor

fun Component.removeBsColor(bsColor: BsColor): Unit -

removeBsRounded

+(js) +

removeBsRounded

fun Component.removeBsRounded(vararg bsRounded: BsRounded): Unit -

setContextMenu

+(js) +

setContextMenu

-fun Widget.setContextMenu(contextMenu: ContextMenu): Widget

Sets context menu for the current widget.

- +fun Widget.setContextMenu(contextMenu: ContextMenu): Widget -

style

+(js) +

style

-fun Widget.style(className: String? = null, init: (Style.() -> Unit)? = null): Style

DSL builder extension function.

- +fun Widget.style(className: String? = null, init: (Style.() -> Unit)? = null): Style diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/lock.html b/api/pl.treksoft.kvision.form.upload/-upload-input/lock.html index 6792e820..5675cf96 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/lock.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/lock.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / lock

lock

- +(js) open fun lock(): Unit

Locks the file input (disabling all buttons except a cancel button).

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/multiple.html b/api/pl.treksoft.kvision.form.upload/-upload-input/multiple.html index 395dd1b9..ba515937 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/multiple.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/multiple.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / multiple

multiple

- +(js) var multiple: Boolean

Determines if multiple file upload is supported.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/name.html b/api/pl.treksoft.kvision.form.upload/-upload-input/name.html index c173a4dd..702fd7e1 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/name.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/name.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / name

name

- +(js) open var name: String? -

Overrides FormInput.name

The name attribute of the generated HTML input element.

Getter

The name attribute of the generated HTML input element.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/prefer-iconic-preview.html b/api/pl.treksoft.kvision.form.upload/-upload-input/prefer-iconic-preview.html index 517a7fc2..70dd4038 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/prefer-iconic-preview.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/prefer-iconic-preview.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / preferIconicPreview

preferIconicPreview

- +(js) var preferIconicPreview: Boolean

Determines if the iconic preview is prefered.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/render.html b/api/pl.treksoft.kvision.form.upload/-upload-input/render.html index f02ecef7..54dd02f3 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/render.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/render.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / render

render

- +(js) protected open fun render(): VNode -

Overrides Widget.render

Renders current component as a Snabbdom vnode.

Return
Snabbdom vnode

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/required.html b/api/pl.treksoft.kvision.form.upload/-upload-input/required.html index b86ef734..0cb60776 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/required.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/required.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / required

required

- +(js) var required: Boolean

Determines if the input selection is required.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/reset-input.html b/api/pl.treksoft.kvision.form.upload/-upload-input/reset-input.html index 404849de..fb87f7dd 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/reset-input.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/reset-input.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / resetInput

resetInput

- +(js) open fun resetInput(): Unit

Resets the file input control.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/show-browse.html b/api/pl.treksoft.kvision.form.upload/-upload-input/show-browse.html index 8deba1ce..de1c5d54 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/show-browse.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/show-browse.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / showBrowse

showBrowse

- +(js) var showBrowse: Boolean

Determines if the file browse button is shown.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/show-cancel.html b/api/pl.treksoft.kvision.form.upload/-upload-input/show-cancel.html index 96f45595..b2be4db2 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/show-cancel.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/show-cancel.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / showCancel

showCancel

- +(js) var showCancel: Boolean

Determines if the cancel button is shown.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/show-caption.html b/api/pl.treksoft.kvision.form.upload/-upload-input/show-caption.html index 90429bd5..33d233c5 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/show-caption.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/show-caption.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / showCaption

showCaption

- +(js) var showCaption: Boolean

Determines if the caption is shown.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/show-preview.html b/api/pl.treksoft.kvision.form.upload/-upload-input/show-preview.html index 7025fd2c..35d9fbeb 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/show-preview.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/show-preview.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / showPreview

showPreview

- +(js) var showPreview: Boolean

Determines if the preview is shown.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/show-remove.html b/api/pl.treksoft.kvision.form.upload/-upload-input/show-remove.html index 1847fbcb..521fc707 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/show-remove.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/show-remove.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / showRemove

showRemove

- +(js) var showRemove: Boolean

Determines if the remove button is shown.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/show-upload.html b/api/pl.treksoft.kvision.form.upload/-upload-input/show-upload.html index da388c67..a7d4af28 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/show-upload.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/show-upload.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / showUpload

showUpload

- +(js) var showUpload: Boolean

Determines if the upload button is shown.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/size.html b/api/pl.treksoft.kvision.form.upload/-upload-input/size.html index bfac42c8..bafaafbd 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/size.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/size.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / size

size

- +(js) open var size: InputSize? -

Overrides FormInput.size

The size of the input (currently not working)

Getter

The size of the input (currently not working)

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/unlock.html b/api/pl.treksoft.kvision.form.upload/-upload-input/unlock.html index 511efc6c..ac8a09f3 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/unlock.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/unlock.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / unlock

unlock

- +(js) open fun unlock(): Unit

Unlocks the file input.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/upload-extra-data.html b/api/pl.treksoft.kvision.form.upload/-upload-input/upload-extra-data.html index 6d62eef3..13aa5231 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/upload-extra-data.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/upload-extra-data.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / uploadExtraData

uploadExtraData

- +(js) var uploadExtraData: ((String, Int) -> dynamic)?

The extra data that will be passed as data to the AJAX server call via POST.

Getter
diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/upload-url.html b/api/pl.treksoft.kvision.form.upload/-upload-input/upload-url.html index 1f1ef5bb..765054f4 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/upload-url.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/upload-url.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / uploadUrl

uploadUrl

- +(js) var uploadUrl: String?

The optional URL for the upload processing action. If not set the upload button action will default to form submission.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/upload.html b/api/pl.treksoft.kvision.form.upload/-upload-input/upload.html index 0cbcaa23..2062e6ed 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/upload.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/upload.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / upload

upload

- +(js) open fun upload(): Unit

Trigger ajax upload (only for ajax mode).

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/validation-status.html b/api/pl.treksoft.kvision.form.upload/-upload-input/validation-status.html index 0edf9786..ce1f924a 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/validation-status.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/validation-status.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / validationStatus

validationStatus

- +(js) open var validationStatus: ValidationStatus? -

Overrides FormInput.validationStatus

The validation status of the input.

Getter

The validation status of the input.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/value.html b/api/pl.treksoft.kvision.form.upload/-upload-input/value.html index eb24d72e..19d8a9c2 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/value.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/value.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / UploadInput / value

value

- +(js) var value: List<KFile>?

File input value.

-- cgit