Skip to content

chathuraa/meteor-x-editable-bootstrap-less

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meteor-x-editable-bs3-less

The x-editable in-place editor with Twitter Bootstrap, repackaged for Meteor.

Install

mrt add x-editable-bootstrap-less

NOTE: The latest branch uses the Bootstrap 3 build of x-editable. If you are still using Bootstrap 2, install v1.4.6.3 instead of the latest.

textarea example

template

<p id="textArea" class="editable" data-type="textarea" data-placeholder="Enter text" data-emptytext="Click to enter text" data-rows="4">{{textAreaContent}}</p>

rendered callback

The short answer:

$('#textArea.editable').editable({
  success: function(response, newValue) {
    <do something with newValue - usually a collection.update call>
}});

The long answer: trying to use x-editable properly on Meteor 0.8 with reactive updates can get interesting. If there is a lot of concurrency in your editing, you will want to consult the information and links in this StackOverflow post.

version history

1.5.1

  • Updated to use BS3 build of x-editable 1.5.1.

1.4.6.2

  • Added example and updated readme to reflect operation under meteor 0.8.0+ (syntax is more simple with blaze)

About

Smart package for x-editable in place editor - Bootstrap 3 Less

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.1%
  • CSS 0.9%