
This is a flat (without history) import of (some of) the content from our markdown module. We've imported this without history because the repo contains our blog posts and showcases posts content prior to porting them to strapi. Since this contains many images, it would balloon the size of this repo to import the full history. Instead, please refer to the history of the (archived) markdown repo at: https://github.com/freesewing/markdown
20 lines
484 B
Markdown
20 lines
484 B
Markdown
---
|
|
title: postSample
|
|
---
|
|
|
|
The `postSample` hook runs just after your pattern is sampled. Your plugin will receive the Pattern object.
|
|
|
|
It is triggered just before the end of either:
|
|
|
|
- the [Pattern.sampleOption()](/reference/api/pattern/#sampleoption) method
|
|
- the [Pattern.sampleMeasurement()](/reference/api/pattern/#samplemeasurement) method
|
|
- the [Pattern.sampleModels()](/reference/api/pattern/#samplemodels) method
|
|
|
|
<Note>
|
|
|
|
The `postSample` hook is rarely used.
|
|
|
|
</Note>
|
|
|
|
|
|
|