Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
apostrophe-anchors
Advanced tools
Readme
An improve
module that adds an ID wrapper around apostrophe-widgets
, useful for navigating to widgets via anchors.
Pass anchorDefault: MY-SCHEMA-STRING-FIELD-NAME
as part of your widget configuration. This will default back to a slugified version of the given field's value. In the case of anchordId
already having a value, it will not be overwritten. If given default field is empty, don't try to assign a value.
// app.js
// .. other configuration
'artwork-widgets':{
extend: 'apostrophe-pieces-widgets',
anchorDefault: 'title' // existing string field on the widget
},
Pass anchors: false
as part of your widget configuration.
// app.js
// .. other configuration
'artwork-widgets':{
extend: 'apostrophe-pieces-widgets',
anchors: false
},
This would be useful if doing custom front-end behavior. The default attribute is id
.
// app.js
// .. other configuration
'apostrophe-anchors-widgets': {
anchorsAttribute: 'data-override'
}
The above will wrap your widget in <div class="apos-area-widget-wrapper ui-draggable" data-apos-widget-wrapper="image" data-override="MY-VALUE">
FAQs
An `improve` bundle that adds anchoring capability to existing `apostrophe-widgets`.
The npm package apostrophe-anchors receives a total of 2 weekly downloads. As such, apostrophe-anchors popularity was classified as not popular.
We found that apostrophe-anchors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.