0.15.0 • Published 9 years ago

lackey-inline-edit v0.15.0

Weekly downloads
1
License
-
Repository
github
Last release
9 years ago

Inline Edit

Angularjs implementation of in-line editing. Assumes all data is passed as an angular model or an HTTP resource following a naming convention.

Requires angularjs, angular-sanitize and restangular. Developed for modern browsers.

This module is part of the Lackey framework that is used to build the Lackey CMS amongst other projects.

Install

npm install
bower install
grunt build

then open htdocs/index.html and check the example

example

<div lk-edit>
    <div class="header">
        <lk-api action="save"></lk-api>
        <lk-api action="cancel"></lk-api> <!-- cancel action is optional -->
    </div>

    <lk-error ttl="5000"></lk-error><!-- shows error messages -->
    
    <div>
        <lk-var data-name="products.my-product.slug" data-type="text" data-placeholder="update me"></lk-var>
    </div>
</div>

Usage

All editable fields must be wrapped up in an element with the lk-edit attribute.

The save and cancel (to restore database values) buttons are created with directive lk-api action=save|cancel. These tags must also be contained inside the edit tag. Finally any editable text should be inserted with the directive lk-var.

Directive lk-api

just accepts one attribute: action.

Action can only be save or cancel. Cancel pulls all data from the API and restores all values.

Directive lk-error

accepts a ttl argument to define how long should the error message remain visible.

Directive lk-var

This is how we define our editable variables. more info...

Directive lk-search

Allows us to search a resource and add the results to a model. more info...

0.15.0

9 years ago

0.14.1

9 years ago

0.14.0

9 years ago

0.13.0

9 years ago

0.12.0

9 years ago

0.11.0

9 years ago

0.10.0

9 years ago

0.9.0

9 years ago

0.8.6

9 years ago

0.8.5

9 years ago

0.8.4

9 years ago

0.8.3

9 years ago

0.8.2

9 years ago

0.8.1

9 years ago

0.8.0

9 years ago

0.7.0

9 years ago

0.6.0

9 years ago

0.5.0

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago