Linking text to modal

Is it possible in Uikit 3 to open a modal with a text link rather than a button?

Sure you’ll need to set the target within your text, example: <a uk-toggle="target: #my-modal">open modal</a>


Another option is to add the attributes directly to the link window:

  • Name: uk-toggle
  • Value: target: #my-modal

Cheers
Lucas

2 Likes

Thank you Lucas, the screenshot is just what I needed.