This widget allows users to rate or purely display the rates only.
Check GitTio
Function | Parameters | Usage | Return Value Type |
---|---|---|---|
getRate | N/A | return rates | integer |
- @param {boolean} _args.ratable - if false not allow for rating. false by default
- @param {integer} _args.rate - 0~5
- @param {integer} _args.size - size of the star - width and height are equal
- @param {integer} _args.left
- @param {integer} _args.right
- @param {integer} _args.top
- @param {integer} _args.bottom
<Alloy>
<Window class="container">
<Widget src="com.tourist.components.rating" ratable=true id="rating" rate="3" size=25 left=15 top=30 />
</Window>
</Alloy>
- 1.0
- Initial version
Copyright 2011-2015 David He Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.