Skip to content

Commit

Permalink
Document custom placeholders for the register interest widget and mak…
Browse files Browse the repository at this point in the history
…e register interest/events widgets top level nav items. (#88)
  • Loading branch information
cillian authored Jan 6, 2025
1 parent fad8e87 commit ab573c9
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions source/docs/api/widget/index.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -486,22 +486,34 @@ Use the `trialfire` plugin to integrate with [Trialfire](https://trialfire.com/)

You can use `email-placeholder` and `name-placeholder` attributes to set custom placeholders for the name and email fields on the order form.

## Events widget
# Events widget

To display a list of your upcoming and past events on your site, like what appears on your Tito public account timeline <a href="https://ti.to/events" target="_blank">here</a> for example, you can use the `<tito-events>` widget.

```html
<tito-events account="ultimateconf"></tito-events>
```

## Register interest widget
# Register interest widget

```html
<tito-register-interest event="ultimateconf/2013"></tito-register-interest>
```

To add a form on your site for people to <a href="https://help.tito.io/en/articles/2003003-interested-people" target="_blank">register interest</a> in your event, you can use the `<tito-register-interest>` widget.

## Custom placeholders

```html
<tito-register-interest event="ultimateconf/2013"></tito-register-interest>
<tito-register-interest
event="ultimateconf/2013"
email-placeholder="[email protected]"
name-placeholder="Michael Scott"
></tito-register-interest>
```

You can use `email-placeholder` and `name-placeholder` attributes to set custom placeholders for the name and email fields on the register interest widget.

<br>
<br>
<br>
Expand Down

0 comments on commit ab573c9

Please sign in to comment.