Giter Club home page Giter Club logo

netzke-persistence's Introduction

netzke-persistence

Enables persistence in Netzke components.

The following components currently support persistence:

  • Basepack::BorderLayoutPanel - remembers its region sizes, as well as collapsed/expanded states

In the works:

  • Basepack::Window - remembers its dimensions and position

  • Basepack::GridPanel - remembers:

    • columns sizes, order, and hidden/shown state

    • presets for advanced search

  • Basepack::TabPanel - remembers its last active tab

  • Basepack::AccordionPanel - remembers its panels states

  • Basepack::BasicApp - remembers its last loaded component

Installation

In your Gemfile:

gem 'netzke-persistence'

From your app directory run:

rails generate netzke:persistence && rake db:migrate

Usage

To enable persistence for a specific component, set its persistence configuration option to true, e.g.:

<%= netzke :my_component, :persistence => true %>

Component developers may refer to api.netzke.org/core/Netzke/State.html. For an example, see ComponentWithPersistence in test/rails_app/app/components.

Running tests

Symlink the Ext JS library into the test app, e.g. (depends on where your Ext JS is located):

ln -s ~/code/sencha/ext-3.3.0 test/rails_app/public/extjs

Run bundle install from inside the test app:

cd test/rails_app && bundle install && cd -

Running cucumber tests:

cucumber features

RSpec tests:

rspec spec

Copyright © 2008-2010 Sergei Kozlov, released under the MIT license

netzke-persistence's People

Contributors

kristianmandrup avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.