Search
Picker.createWrapper Property
See Also
 






Gets or sets a value indicating whether a wrapper div element should be created for the control.

Namespace: MindFusion.Common.UI
File: Picker.js

 Syntax

JavaScript  Copy Code

get createWrapper() {}

 Property Value

Boolean. true to create the wrapper, otherwise false.

 Remarks

Default value is true. Set to false, if you wish to provide the wrapper yourself, (e.g.) when the control is used as an inplace editor.

 Example

The following code uses the createWrapper property to replace the Picker wrapper with an input element:

JavaScript  Copy Code

var editor = document.createElement("input");
editor.type = "datetime-local";
editor.cssClass = "string-editor";
editor.theme = "peach"
editor.autoComplete = false;
editor.buttonStyle = 2;
editor.createWrapper = false;

editor.valueChanged.addEventListener(function (sender, args)
{
    var newValue = editor.value;   
});
element.appendChild(editor.draw());
editor.attach();

 See Also