Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ImageSelectorDef

This will create media picker. It will allow to select one or more files from gallery.

Hierarchy

Indexable

[key: string]: any

This will create media picker. It will allow to select one or more files from gallery.

Index

Properties

Optional afterInit

Optional attr

attr: IDictionary<string>

Object defining html attributes for controls root element.

Optional click

Callback that will be called when control is clicked.

Optional css

css: JQueryCssProperties

Object defining css styles for controls root element.

Optional enabled

enabled: undefined | false | true

If true control will be enabled if false control will be disabled (inactive).

Optional fixedWidth

fixedWidth: undefined | number

Optional fontAwesomeTab

fontAwesomeTab: undefined | false | true

Tab with FontAwesome icons added to media library when set to true. Ignored when multiselect value is true. (default: false)

Optional id

id: undefined | string

Reference id of the control, it will be used to reference this control in the code throuth FieldsIndex objects.

Optional ignore

ignore: undefined | false | true

If true this control definition will be ignored and control will not be initiated.

Optional init

Callback that will be called when control is initialised.

Optional mediatabs

mediatabs: undefined | false | true

If true will enable additional options to select external images. (default: true)

mode

mode: "all" | "image" | "sound" | "flash"

Control mode ('all', 'image', 'sound' or 'flash') defines what kind of files can be selected.

Optional multiselect

multiselect: undefined | false | true

If true will allow to select multiple files. (default: false)

Optional on

Optional select

Callback that will be called when list of selected files changes.

Optional styleClass

styleClass: undefined | string

Style class to add on root element of the control.

Optional thumbSize

thumbSize: undefined | number

Size (in pixels) of the controls preview thumbnail. (default: 60)

type

type: "ImageSelector"

Optional usePictureManager

usePictureManager: undefined | false | true

When set to true clicking image selector opens picture manager instead of media library. Ignored when multiselect value is false. (default: false)

Optional value

value: string[]

Initially selected files.

Optional visible

visible: undefined | false | true

Set initial visibility of control. (default: true)