2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: Part.raise.info()
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-09-25 17:53:09 +02:00
|
|
|
A part's `raise.info()` method will log a ingo-level event.
|
|
|
|
Info events are typically used to pass information to users
|
|
|
|
that is informative to them.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
What happens with this data is entirely up to the frontend developer.
|
|
|
|
As such, data can by anything you like. A string is common, but you
|
|
|
|
can also add arrays or objects with data or information you want to
|
|
|
|
use in your frontend.
|
|
|
|
|
|
|
|
<Tip>
|
|
|
|
|
|
|
|
All raise methods are available via [the shorthand method](/reference/api/part/shorthand)
|
|
|
|
|
|
|
|
</Tip>
|
2021-09-25 17:53:09 +02:00
|
|
|
|
|
|
|
## Part.raise.info() signature
|
|
|
|
|
|
|
|
```js
|
|
|
|
raise.info(data)
|
|
|
|
```
|
|
|
|
|
|
|
|
## Part.raise.info() example
|
|
|
|
|
|
|
|
```js
|
|
|
|
export default function (part) {
|
|
|
|
const { raise, options } = part.shorthand()
|
|
|
|
|
|
|
|
if (options.shortSleeves) {
|
|
|
|
raise.info('Not drafting french cuffs because you opted for short sleeves')
|
|
|
|
return part
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|