gte (dependentKey, value) Ember.ComputedProperty
public
A computed property that returns true if the provided dependent property is greater than or equal to the provided value.
Example
let Hamster = Ember.Object.extend({ hasTooManyBananas: Ember.computed.gte('numBananas', 10) }); let hamster = Hamster.create(); hamster.get('hasTooManyBananas'); // false hamster.set('numBananas', 3); hamster.get('hasTooManyBananas'); // false hamster.set('numBananas', 10); hamster.get('hasTooManyBananas'); // true
Parameters:
-
dependentKey
String
-
value
Number
Returns:
-
Ember.ComputedProperty
- computed property which returns true if the original value for property is greater or equal then given value.
Please login to continue.