1. Home
  2. Docs
  3. WordPress Studio Framework
  4. How-To…
  5. Attributes

Attributes

Simple Attributes Example

array(
  'id' => 'example-password',
  'type' => 'text',
  'title' => 'Password',
  'attributes' => array(
    'type' => 'password',
    'maxlength' => 7,
  ),
),

array(
  'id' => 'example-attributes',
  'type' => 'text',
  'title' => 'Read Only Text',
  'default' => 'A read only field',
  'attributes' => array(
    'readonly' => 'readonly',
  ),
),

Advanced Attributes Example

array(
  'id' => 'example-textarea',
  'type' => 'textarea',
  'title' => 'Example Textarea',
  'attributes' => array(
    'rows' => 25,
    'placeholder' => '//Enter Information',
    'style' => 'border:1px solid #0073aa;color:#0073aa;',
  ),
),
Was this article helpful to you? Yes No

How can we help?