Skip to main content

collective.kss.inlinejs

If you want to use external js libraries with kss you may have to write a kss plugin (for example create a jQuery porting of some features). When it makes sense you can also use this package and put simple inline javascript code that will be executed.

You can call javascript code from the inlinejs kss command set or configure properly a kss configuration file.

Example usage

From python code:

element = ksscore.getHtmlIdSelector(‘selector’) inline = self.getCommandSet(“inlinejs”) inline.execJs(element, “alert(‘TEST’); alert(node.id); jQuery(…)”)

From a kss configuration file:

img:click {

action-client: inlinejs-effect; inlinejs-effect-code: ‘alert(node.id); alert(“done”); jQuery(…)’; inlinejs-effect-debug: ‘1’; }

TODO

  • Tests coverage

Author

Metadata

Release files for collective.kss.inlinejs 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.kss.inlinejs 1.0
File Size Uploaded
collective.kss.inlinejs-1.0.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for collective.kss.inlinejs 1.0
File Interpreter ABI Platform
collective.kss.inlinejs-1.0-py2.4.egg Legacy Egg format - - Details

Total release size: 15.7 kB

Release files / collective.kss.inlinejs-1.0.tar.gz

Download URL collective.kss.inlinejs-1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dcd7dd7760fa6274ff8875772b714817b484766e8b389540e21037f502f351c8
BLAKE2b-256 checksum
How to use checksums
da2fa540e03d936f57a7b3fc9f61c0cce3837c55e549db19591f5927d42e70b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / collective.kss.inlinejs-1.0-py2.4.egg

Download URL collective.kss.inlinejs-1.0-py2.4.egg
Size 11.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
9c155c0771f2df9eec988eb9c2bec2f495f01a913fe30dfb15721d50ec0852ca
BLAKE2b-256 checksum
How to use checksums
14829fb9d9146785b8c68ca609509f046a35d92b7ab92f3e509aca8182a210da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page