Skip to content

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