-
Notifications
You must be signed in to change notification settings - Fork 3
text()
h1mesuke edited this page Sep 14, 2010
·
8 revisions
bp.text = function(label, id, _default /* , [attrs,] [tooltip,] [validateFunc] */) {
Creates a text field for a string value.
text("Text 1", 'text_1', "String"),
If validateFunc specified, the function will be called before saving the settings to validate the value input by the user. If the function returns false
, the saving is canceled.
The default validator always returns true
.
type: string [optional]
The position of the label of the field. Available values are 'left'
, 'hide'
.
The default value is 'left'
.
If set to 'hide'
. The label is hidden.