Releases: mycolorway/tao_on_rails
Releases · mycolorway/tao_on_rails
v2.0.0-beta.10
- Fix:
disconnected
callback might be called beforeconnected
callback. - Property observer now supports string as the instance method name.
- Add two new types of properties:
properties: {
customProperty: {
get() { ... },
set() { ... },
},
independentProperty: {
type: Boolean,
default: false,
syncAttribute: false,
},
}
Check the unit test for more usage info.
v1.0.0.beta.4
CHG: bundle update
v0.10.0
- Add global helpers:
Tao.helpers.findComponent()
andTao.helpers.componentReady()
- Add
tag_name
option forTaoOnRails::Components::Base
,which can be used to specify tag name for a single component instance. - Add this gem to app eager load path.
- Replace app/plugin template with install generator.
0.9.3
findComponnet
method of TaoComponent can accept multiple child component selectors now. The callback will be triggered after all specified child components connected:
[@result, @list] = @findComponent '.select-result', '.select-list', (result, list) ->
# do something after .select-result and .select-list are connected
- Add
namespacedTrigger
method to TaoComponent, which will help trigger two namespaced custom events for one single event name. For example:
@namespacedTrigger 'change'
This line of code in checkbox component will trigger two custom events in sequence: tao:change
and tao-check-box:change
v0.9.2
- It's not necessary to write Tao Page subclass for every page now.
- Add an ActiveSupport hook for loading components.
- Some minor improvements.
v0.9.1
- Loose rails version requirement. Rails version above 5.0.0 will be acceptable.
- Rename _reflow method of component to reflow
v0.9.1.pre
- Loose rails version requirement. Rails version above 5.0.0 will be acceptable.
- Rename
_reflow
method of component toreflow
v0.9.0
Ruby Component
- Delegate these instance methods to component class:
tag_name
component_name
tag_prefix
template_paths
template_name
- Improve component render logic. Component will now search template files in several
template_paths
. - Add
html_options
method for rendering conveience, which will parse underscores in option keys to dashes.
Js Component
- Refactor attribute parser of Tao.Component. Boolean attributes cannot have default value now, and setting a boolean attribute to false will remove the corresponding html attribute(insteadof setting it's value to 'false').
- Add
_beforeAttributeChanged
callback - The mixin apis(include/exclude) of component/module now support function param.
- Upgrade custom elements polyfills
v0.8.2
- Fix a bug in component template rendering
v0.8.1
- Change default value of
array
andhash
attribute tonull
- Add
initialized
connected
anddisconnected
events for base component - Add
reflow
method on base component - Add
findComponent
method on base component for finding child component and providing ready callback of child component - Add
triggerHandler
method on base component; thetrigger
method will now bubble up custom events to ancestors - Add
translate
helper method on ruby component - Improve template finding logic of ruby component; template file can be placed in several valid paths now