Sha256: 7abd889f1bbed5fe542da13aa38eb1b67504aa95d484a5f88236b55e65b2730b

Contents?: true

Size: 1.15 KB

Versions: 10

Compression:

Stored size: 1.15 KB

Contents

<!--
A simpler in-place-editor type control.  Renders an `input` of the
field that is automatically saved via Ajax onchange.

Due to the way the DRYML part system works, `<live-editor>` may not
be parameterized.  If you wish to parameterize it, see
`<live-editor-innards>`.
-->
<def tag='live-editor'>
  <div part="live-editor-part">
    <live-editor-innards/>
  </div>
</def>

<!--
When placed inside of a part, provides a complete parameterizable `<live-editor>`.

### Usage

    <my-field-view:>
      <div part="part-my-field">
        <live-editor-innards hide="puff" style="margin-left: 10px"/>
      </div>
    </my-field-view:>

### Attributes

Attributes are merged onto the supporting formlet, so all `<formlet>`
attributes are supported.  Many don't make sense to customize, but
others such as `hide` and `show`, do.

-->
<def tag='live-editor-innards'>
  <set my-field="&this_field"/>
  <formlet with="&this_parent" class="in-place-form" ajax errors-ok data-rapid="&data_rapid('live-editor')" param merge>
    <error-messages param/><%# TODO: replace with something more compact, maybe even transient %>
    <input field="&my_field" param/>
  </formlet>
</def>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hobo_rapid-2.2.6 taglibs/editors/live_editor.dryml
hobo_rapid-2.2.5 taglibs/editors/live_editor.dryml
hobo_rapid-2.2.4 taglibs/editors/live_editor.dryml
hobo_rapid-2.2.3 taglibs/editors/live_editor.dryml
hobo_rapid-2.2.2 taglibs/editors/live_editor.dryml
hobo_rapid-2.2.1 taglibs/editors/live_editor.dryml
hobo_rapid-2.2.0 taglibs/editors/live_editor.dryml
hobo_rapid-2.1.2 taglibs/editors/live_editor.dryml
hobo_rapid-2.1.1 taglibs/editors/live_editor.dryml
hobo_rapid-2.1.0 taglibs/editors/live_editor.dryml