ButtonComponentBuilder

A builder class for button component.
implements LINE\LINEBot\MessageBuilder\Flex\ComponentBuilder
Methods Summary
public
# __construct( \TemplateActionBuilder $actionBuilder , int|null $flex = NULL, \ComponentMargin|null $margin = NULL, \ComponentButtonHeight|null $height = NULL, \ComponentButtonStyle|null $style = NULL, string|null $color = NULL, \ComponentGravity|null $gravity = NULL )
ButtonComponentBuilder constructor.
public static
# builder( )
Create empty ButtonComponentBuilder.
public
# setAction( \TemplateActionBuilder $actionBuilder )
Set action.
public
# setFlex( int|null $flex )
Set flex.
public
# setMargin( \ComponentMargin|string|null $margin )
Set margin.
public
# setHeight( \ComponentButtonHeight|string|null $height )
Set height.
public
# setStyle( \ComponentButtonStyle|string|null $style )
Set style.
public
# setColor( string|null $color )
Set color.
public
# setGravity( \ComponentGravity|string|null $gravity )
Set gravity.
public
# setPosition( string|\ComponentPosition|null $position )
Set position. specifiable relative or absolute
public
# setOffsetTop( string|\ComponentSpacing|null $offsetTop )
Set offsetTop. specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)
public
# setOffsetBottom( string|\ComponentSpacing|null $offsetBottom )
Set offsetBottom. specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)
public
# setOffsetStart( string|\ComponentSpacing|null $offsetStart )
Set offsetStart. specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)
public
# setOffsetEnd( string|\ComponentSpacing|null $offsetEnd )
Set offsetEnd. specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)
public
# build( )
Builds button component structure.

Implementation of