compact

toggles the compact mode of Chat

boolean compact;

Example

webix.ui({
  view: "chat",
  url: "https://docs.webix.com/chat-backend/",
  compact: true // sets to compact mode initially
)};

Details

By default Chat switches to the compact mode when its size is less than or equal to compactWidth. This can happen during initialization or when the widget or viewport is resized. You can force the compact mode to be set initially through the compact property of the constructor like it's done in the example above.

See also
Back to top