Plugin that allows you to put javascript code evaluated by kss
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file collective.kss.inlinejs-1.0.tar.gz
.
File metadata
- Download URL: collective.kss.inlinejs-1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcd7dd7760fa6274ff8875772b714817b484766e8b389540e21037f502f351c8 |
|
MD5 | 451a16d5168d1cfc3d6403dd66f63bee |
|
BLAKE2b-256 | da2fa540e03d936f57a7b3fc9f61c0cce3837c55e549db19591f5927d42e70b4 |
File details
Details for the file collective.kss.inlinejs-1.0-py2.4.egg
.
File metadata
- Download URL: collective.kss.inlinejs-1.0-py2.4.egg
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c155c0771f2df9eec988eb9c2bec2f495f01a913fe30dfb15721d50ec0852ca |
|
MD5 | b596cc34fce347d766a13382cda76627 |
|
BLAKE2b-256 | 14829fb9d9146785b8c68ca609509f046a35d92b7ab92f3e509aca8182a210da |