import { StyleDefinition } from '../style-definition' ; import { ITocItem , IText , IStyleDefinition } from '../../interfaces' ; /**
 * Class to create a toc item
 */ export class TocItem extends StyleDefinition < TocItem , ITocItem > { param _txt constructor ( private _txt ) { super ( ) ; this . content . tocItem = true ; for ( const key in this . _txt ) { this . content [ key ] = ( this . _txt as any ) [ key ] ; } } param style public tocStyle ( style ) { this . content . tocStyle = style ; return this ; } param margin public tocMargin ( margin ) { this . content . tocMargin = margin ; return this ; } }