github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

skozlov / netzke-core

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 19
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (1)
  • Downloads (4)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (4)
    • v0.4.2
    • 0.4.5.2
    • 0.4.5.1
    • 0.4.5
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Ruby-on-Rails plugin/gem which helps to create reusable components with ExtJS as GUI — Read more

  cancel

http://blog.writelesscode.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

readme update 
skozlov (author)
Fri Feb 05 20:13:52 -0800 2010
commit  1ddb4519598a148a6e2401a8b44126da86c8e515
tree    d1787447531af15a2de2481e4a96e380fdfcd046
parent  2a2b316a9e91349251493b0ef5edacc44f863262
netzke-core /
name age
history
message
file .autotest Wed Apr 29 15:28:57 -0700 2009 autotest config added [Sergei Kozlov]
file .gitignore Sat Oct 10 12:20:27 -0700 2009 gemspec excluded from source [Sergei Kozlov]
file CHANGELOG.rdoc Wed Jan 20 08:58:10 -0800 2010 CHANGELOG update [skozlov]
file LICENSE Mon Oct 12 14:51:04 -0700 2009 LICENSE update [Sergei Kozlov]
file Manifest Sat Sep 05 18:48:09 -0700 2009 added Manifest file [Sergei Kozlov]
file README.rdoc Fri Feb 05 20:13:52 -0800 2010 readme update [skozlov]
file Rakefile Wed Jan 20 08:56:56 -0800 2010 preparing to release 0.5.0 [skozlov]
file TODO Tue Jul 14 15:53:58 -0700 2009 towards v0.4.0, see changelog [Sergei Kozlov]
directory autotest/ Wed Apr 29 15:26:19 -0700 2009 v0.2.12 [Sergei Kozlov]
directory generators/ Fri Jul 10 08:10:34 -0700 2009 more progress [Sergei Kozlov]
file init.rb Fri Jan 02 13:01:20 -0800 2009 v0.1.2 [Sergei Kozlov]
file install.rb Thu Dec 11 21:15:00 -0800 2008 Initial commit [Sergei Kozlov]
directory javascripts/ Sun Jan 10 10:24:51 -0800 2010 Ext 3.1.0 compatibility [skozlov]
directory lib/ Fri Dec 11 08:34:16 -0800 2009 * DRY: now there's no need to always define "ac... [skozlov]
directory stylesheets/ Sun Mar 15 13:33:25 -0700 2009 towards v0.3.0 [Sergei Kozlov]
directory tasks/ Sat Dec 27 14:50:46 -0800 2008 Meta work: replacing underscore with dash in th... [Sergei Kozlov]
directory test/ Mon Nov 09 18:46:58 -0800 2009 Fix: Hash#convert_keys and Array#convert_keys i... [skozlov]
file uninstall.rb Thu Dec 11 21:15:00 -0800 2008 Initial commit [Sergei Kozlov]
README.rdoc

netzke-core

Create Ext JS + Rails reusable components (widgets) with minimum effort.

This is the bare bones of the Netzke framework. Use it to build your own widgets from scratch. For pre-built widgets (like panels, grids, forms, trees, applications), see the netzke-basepack (github.com/skozlov/netzke-basepack) project.

The idea behind the Netzke framework is that it allows you write reusable client/server code. Create a widget, and then embed it (or load it dynamically) into your Ext-based applications or HTML pages. For more info, see the links below.

Instalation

For the latest ("edge") stuff, install as plugin (recommended!):

    ./script/plugin install git://github.com/skozlov/netzke-core.git

Otherwise, install as gem. The gem is hosted on gemcutter. If you haven’t yet enabled gemcutter, run the following:

    sudo gem install gemcutter && gem tumble

Install the gem

    sudo gem install netzke-core

Generate the migrations for Netzke persistent storage:

    ./script/generate netzke_core

Run the migrations.

Netzke assumes that your ExtJS library is in public/extjs (which may be a symbolic link).

Usage

Here’s how to embed a Netzke widget into your Rails view.

  1. In your layout, within the "head" tag, use the netzke_init helper to include all the necessary JavaScript and styles.
     <%= netzke_init %>
    
  2. In config/routes.rb declare the Netzke routes:
     map.netzke
    
  3. In your view use the netzke helper wherever you want to insert a widget.
     <%= netzke :grid_panel, :data_class_name => "User", :columns => [:id, :name, :created_at] %>
    

(here we use the GridPanel widget from the netzke-basepack project)

More info

Introduction to Netzke framework and wiki: github.com/skozlov/netzke

Twitter: twitter.com/skozlov

Tutorials: blog.writelesscode.com

Live-demo: netzke-demo.writelesscode.com

The netzke-basepack project (pre-built full-featured widgets): github.com/skozlov/netzke-basepack


Copyright © 2009 Sergei Kozlov, released under the MIT license

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server