| Invalid Date
字数 0阅读时长 1 分钟
MentionObject is a class for mentions for user, page, database, date, link_preview and template_mention.

1. Class methods

new hash

  • [PARAM] hash parameters for several type of metions. See the following sample.

2. Instance methods

bold=(flag) code=(flag) color=(color) italic=(flag) strikethrough=(flag) underline=(flag)

  • [PARAM] flag true if the RichTextObject is bold/code/italic/strikethrough/underline text
  • [PARAM] color color string for color=
bold=, code=, italic=, strikethrough= and underline= set the correspond flag. color= sets the object color.
 
Loading...
目录