-
Notifications
You must be signed in to change notification settings - Fork 1
dimlabel
jdubs edited this page Oct 23, 2016
·
1 revision
This function places text within a spec that acts as a label. Once the spec receives focus the label is removed. It is not saved to the variant if a value is never entered.
<div>[[Title]]</div>
spec['Title'].dimlabel({
fadeColor: '#ccc',
solidColor: 'black',
defaultText: 'Enter your title here...'
});
- fadeColor: The html color of the text when the label is visible.
- solidColor: The html color of the text when a value is entered.
- defaultText: The label text.