Skip to content

Commit

Permalink
Wagon: Deploying sitegen to repository
Browse files Browse the repository at this point in the history
  • Loading branch information
FuseSource CI committed Oct 9, 2013
1 parent 232db26 commit e1a21bc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions plugins/forms/index.html
Expand Up @@ -147,6 +147,29 @@ <h2 id = "Customising_the_element_or_attributes_of_the_control">Customising the
<select ng-options="c.name for c in colors" ng-model="..." title="..."></select>
```</p>

<h3 id = "Autofocus_on_a_field">Autofocus on a field</h3>

<p>You can pass in the <a href="http://davidwalsh.name/autofocus">autofocus attribute</a> on one of the fields so the browse will auto-focus on one field on startup via</p>

<p>```</p>

<h1 id = "lets_customise_an_existing_schema">lets customise an existing schema</h1>

<p>Core.pathSet(schema.properties, ['myField', 'input-attributes', 'autofocus'], 'true');
```</p>

<p>or explicitly via</p>

<pre><code>properties: {
foo: {
type: "string",
input-attributes: {
autofocus: "true"
}
}</code></pre>

<p> }</p>

<h3 id = "Showing_or_hiding_controls_dynamically">Showing or hiding controls dynamically</h3>

<p>Use the <strong>control-group-attributes</strong> or <strong>control-attributes</strong> object to add ng-hide / ng-show expressions to controls to dynamically show/hide them based on the entity's values. e.g. to conditionally hide the entire control-group div with label and control use this:</p>
Expand Down

0 comments on commit e1a21bc

Please sign in to comment.