shipshapecode/ember-x-editable là dự án JavaScript với 23 sao. X-editable like library for Ember
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
ember-x-editable is built and maintained by Ship Shape. Contact us for Ember.js consulting, development, and training for your project.
Ember-x-editable is inspired by x-editable. It does not have all the same features, and it possibly never will, but I needed an x-editable that played nicely with Ember, so I decided to write this.
If you would like to add functionality, please feel free to submit a PR.
Currently, Bootstrap is bundled with this addon. Eventually, I'd like to just add a dependency on the ember bootstrap addon, or allow it to work without bootstrap. This addon also only works with HTMLBars and Ember 1.11+.
Compatibility
Ember.js v3.12 or above
Ember CLI v2.13 or above
Node.js v10 or above
Installation
ember install ember-x-editable
Demo
http://shipshapecode.github.io/ember-x-editable/
Usage
NOTE: This addon now uses contextual components, so if you were using it previously, and you update, you will need to fix things.
cancelAction (optional) a string representing the action on the controller that you want to execute whenever the user clicks the cancel x.
fontFamilyConfig an array of custom font families that will be passed to the font loader and ensured to be loaded and used for calculating the width of the text in pixels
isFieldEditing a boolean variable that allows you to access the isEditing value outside of the component
saveAction a string representing the action on the controller that you want to execute whenever the user clicks the save check mark.
validator (optional) a function reference to execute against the content string before saving
value a string of text to display
Textarea
{{#ember-x-editable
fontFamilyConfig=fontFamilyConfig
isFieldEditing=isFieldEditing
validator=textareaValidator
value='Textarea test value' as |x|}}
{{x.textarea
cancelAction=(action 'cancelAction')
saveAction=(action 'saveAction')
}}
{{/ember-x-editable}}
cancelAction (optional) a string representing the action on the controller that you want to execute whenever the user clicks the cancel x.
fontFamilyConfig an array of custom font families that will be passed to the font loader and ensured to be loaded and used for calculating the width of the text in pixels
isFieldEditing a boolean variable that allows you to access the isEditing value outside of the component
saveAction a string representing the action on the controller that you want to execute whenever the user clicks the save check mark.
validator (optional) a function reference to execute against the content string before saving
cancelAction (optional) a string representing the action on the controller that you want to execute whenever the user clicks the cancel x.
content An array of objects of the format: [{value: 1, text: 'TestString}]
fontFamilyConfig an array of custom font families that will be passed to the font loader and ensured to be loaded and used for calculating the width of the text in pixels
isFieldEditing a boolean variable that allows you to access the isEditing value outside of the component
saveAction (optional) a string representing the action on the controller that you want to execute whenever the user clicks the save check mark.
validator (optional) a function reference to execute against the content string before saving
value the 'value' of the object in the content array that should be selected
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/shipshapecode/ember-x-editable là nguồn chính thức.
shipshapecode/ember-x-editable có phải mã nguồn mở không?
Có — shipshapecode/ember-x-editable phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/shipshapecode/ember-x-editable.
shipshapecode/ember-x-editable có trang demo không?
Dự án có trang chủ ở http://shipshapecode.github.io/ember-x-editable/. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
shipshapecode/ember-x-editable dùng license gì?
shipshapecode/ember-x-editable phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
shipshapecode/ember-x-editable là gì?
shipshapecode/ember-x-editable (shipshapecode/ember-x-editable) là dự án JavaScript trên GitHub. Theo mô tả gốc: X-editable like library for Ember
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về ember-x-editable?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về ember-x-editable.