Search for Resources and Solutions

Text Align Lib

Text Align Lib is a Midrub Emails Composer's Lib which can be used to align the text in the template's elements. 


Text Align Lib allows to

  • Align text to left.
  • Align text to center.
  • Align text to right.
  • Justify the text.


The Text Align Lib has a model with 4 properties:

  • text_left - contains a boolean option to select the left align button.
  • text_center - contains a boolean option to select the center align button.
  • text_right - contains a boolean option to select the right align button.
  • text_justify - contains a boolean option to select the justify text button.


The Text Align Lib's run function returns 4 properties(one per time):

  • text_left - contains a boolean option to left align the text.
  • text_center - contains a boolean option to center align the text.
  • text_right - contains a boolean option to right align the text.
  • text_justify - contains a boolean option to justify the text.



Was this article helpful?