Skip to content

Commit e9cd00e

Browse files
SombreroElGringoHyunje Jun
authored andcommitted
FlexMessage updated (#82)
• action property implemented in FlexBox #81 • maxLines property implemented in FlexText
1 parent 8463c76 commit e9cd00e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/types.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,11 @@ export type FlexBox = {
605605
* If this box is the first component in the parent box, the `margin` property will be ignored.
606606
*/
607607
margin?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
608+
/**
609+
* Action performed when this button is tapped.
610+
* Specify an [action object](https://developers.line.me/en/reference/messaging-api/#action-objects).
611+
*/
612+
action?: Action;
608613
};
609614

610615
/**
@@ -912,6 +917,12 @@ export type FlexText = {
912917
* If set to `true`, you can use a new line character (\n) to begin on a new line.
913918
*/
914919
wrap?: boolean;
920+
/**
921+
* Max number of lines. If the text does not fit in the specified number of lines,
922+
* an ellipsis (…) is displayed at the end of the last line.
923+
* If set to 0, all the text is displayed. The default value is 0.
924+
*/
925+
maxLines?: number;
915926
/**
916927
* Font weight.
917928
* Specifying `bold`makes the font bold.

0 commit comments

Comments
 (0)