UNPKG

@totvs-agro/mobile-components

Version:

Componentes Mobile Totvs (Front-End) para utilização dos estilos do T-Faces e Ionic v3

24 lines 1.2 kB
import { Component, Input } from '@angular/core'; var HTML_TEMPLATE = "\n<ion-segment [(ngModel)]=\"selectedType\" (ionChange)=\"onSelectSegment();\">\n <ion-segment-button style=\"text-transform: none !important; font-size: 14px !important;\" *ngFor=\"let segment of segments\" value=\"{{segment.value}}\">\n {{segment.description}} \n </ion-segment-button>\n</ion-segment>"; var SegmentComponent = /** @class */ (function () { function SegmentComponent() { } SegmentComponent.prototype.onSelectSegment = function () { this.callbackSelectSegment(this.selectedType); }; SegmentComponent.decorators = [ { type: Component, args: [{ selector: 'segment', template: HTML_TEMPLATE },] }, ]; /** @nocollapse */ SegmentComponent.ctorParameters = function () { return []; }; SegmentComponent.propDecorators = { "segments": [{ type: Input, args: ['segments',] },], "callbackSelectSegment": [{ type: Input, args: ['callbackSelectSegment',] },], }; return SegmentComponent; }()); export { SegmentComponent }; //# sourceMappingURL=segment.js.map