dimlabel

jdubs edited this page Oct 23, 2016 · 1 revision

Overview

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.

Advanced Scripting

<div>[[Title]]</div>
spec['Title'].dimlabel({
    fadeColor: '#ccc',
    solidColor: 'black',
    defaultText: 'Enter your title here...'
});

Options

  • 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.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.