useMeta
Get meta information of the widget, including the widget itself, the author, the information in datasheet, etc.
Returns
Example
import { useMeta } from '@apitable/widget-sdk';
// Show the datasheet and author associated with the widget
function Meta() {
const { datasheetName, authorName } = useMeta();
return (<div>
<p>Name of the datasheet associated with the widget: {datasheetName}</p>
<p>Widget author: {authorName}</p>
</div>);
}