import { EventEmitter, ElementRef, OnChanges } from '@angular/core'; /** * @element ons-segment * @directive OnsSegment * @selector ons-segment * @description * [en]Angular directive for `` component.[/en] * [ja]``要素のAngularディレクティブです。[/ja] * @example * @Component({ * selector: 'app', * template: ` * * *
* * * * * *
*
* * * * * *
* ` * }) * export class AppComponent { * page1 = PageComponent; * page2 = PageComponent; * page3 = PageComponent; * * constructor() {} * * onPostChange(event: any) { * console.log('postchange event', event); * } * } * * @Component({ * selector: 'ons-page[tab]', * template: `

Page

` * }) * export class PageComponent { * constructor() { } * } */ export declare class OnsSegment implements OnChanges { private _elementRef; private _element; /** * @output postchange * @param $event * @param $event.index * @desc * [en]Triggers when the index of the active button is changed.[/en] * [ja]`ons-segment`要素のアクティブなボタンのインデックスが変わった時に呼び出されます。[/ja] */ /** * @input activeIndex * @desc * [en]Input index of the active button.[/en] * [ja]アクティブなボタンのインデックスを設定します。[/ja] */ activeIndex: number; /** * @output activeIndexChange * @desc * [en]Triggers when the index of the active button is changed.[/en] * [ja]アクティブなボタンのインデックスが変化した時に発火します。[/ja] */ activeIndexChange: EventEmitter; /** * @input tabbar * @desc * [en]The tabbar component to "connect" to the segment. Must be inside the same page. Works only during initialization.[/en] * [ja]このセグメントに紐づけるタブバーを指定します。タブバーはセグメントと同一ページ内に存在する必要があります。初期化時にのみ動作します。[/ja] */ tabbar: any; constructor(_elementRef: ElementRef); ngOnChanges(): void; }