Answered

The customization possibilties for cards

  • 25 June 2020
  • 4 replies
  • 1644 views

Userlevel 1
Badge +2

I've looked around  the references and know to customize a lot of things like adding logos and such, but still aren’t sure if I can change the height and width or add tags to the cards via web SDK

 

If there is a page somewhere I can look at to figure out the details of the card object creation?

icon

Best answer by Boris Borodyansky 2 July 2020, 17:15

View original

4 replies

Userlevel 4
Badge +1

Currently cards have fixed width and height, but you can change scale, which represents overall size of the card.

Here’s typing file with SDK methods, including what fields are available for widgets: https://github.com/miroapp/app-examples/blob/0bf428b6deb840b520112681b64a9e7fa533ecf1/miro.d.ts#L628

Userlevel 1
Badge +2

Sorry for the late response, thats helps a lot! thankyou,

@Boris Borodyansky Can I extend ICardWidget for adding custom fields?

Badge

Currently cards have fixed width and height, but you can change scale, which represents overall size of the card.

Here’s typing file with SDK methods, including what fields are available for widgets: https://github.com/miroapp/app-examples/blob/0bf428b6deb840b520112681b64a9e7fa533ecf1/miro.d.ts#L628

Hi @Boris Borodyansky ,

I am trying to create cards with a height and width specify in the board with a application REST API but i can´t and i receive this response "Only height or width should be passed for widgets with fixed aspect ratio" but i can´t achive how i can do it.

thanks in advance.

Reply