poker-html-client
Version:
HTML client for online poker
28 lines (22 loc) • 723 B
text/typescript
import ko = require("knockout");
/**
* Parameters for the timeblock component
*/
interface FilterOptionsComponentParameters {
options: any;
/**
* Optional initial slide to be presented first.
*/
displayCurrency?: boolean | KnockoutObservable<boolean>;
}
class FilterOptionsComponent {
private options: any;
private displayCurrency = true;
constructor(params: FilterOptionsComponentParameters) {
this.options = params.options;
if (params && params.displayCurrency !== undefined && params.displayCurrency !== null) {
this.displayCurrency = ko.unwrap(params.displayCurrency);
}
}
}
export = FilterOptionsComponent;