External integration contract for RingCX to retrieve a patient's outbound-calling rules at call setup time.
| Item | Value |
| // Simple AngularJS template filter for showing ellipses for strings of a given length | |
| // | |
| // USAGE IN TEMPLATE | |
| // <div>{{ obj.lastname | ellipsis:10 }}</div> | |
| // filter | |
| app.filter('ellipsis', function() { | |
| return function(input, total) { | |
| if (input.length > total) { | |
| return (input.slice(0, total) + "..."); |
| WKAlertAction *action = [WKAlertAction actionWithTitle:@"OK" style:WKAlertActionStyleDefault handler:^{ | |
| // do something after OK is clicked | |
| }]; | |
| [self presentAlertControllerWithTitle:@"Oops!" message:@"Something happened." preferredStyle:WKAlertControllerStyleAlert actions:@[action]]; | |
| // Usage in template: My number is {{ value|abbnumber }} | |
| myApp.filter('abbnumber', function() { | |
| return function(input) { | |
| input = parseInt(input); | |
| if (input >= 10000000) { | |
| return (input / 1000000).toFixed(0) + 'M' | |
| } | |