%3 ::nx::Object ::nx::Object ::cookieconsent::CookieConsent ::cookieconsent::CookieConsent render_js ::cookieconsent::CookieConsent->::nx::Object

Class ::cookieconsent::CookieConsent

::cookieconsent::CookieConsent[i] create ... \
           [ -compliance-type (default "inform") ] \
           [ -default-palette (default "popup {text #fff background #004570} button {text #000 background #f1d600}") ] \
           [ -dismiss-button-text (default "#cookie-consent.dismiss-button-text#") ] \
           [ -expiryDays:integer (default "365") ] \
           [ -layout (default "block") ] \
           [ -learn-more-link (default "https://cookiesandyou.com/") ] \
           [ -message-text (default "#cookie-consent.message#") ] \
           [ -palette (default "default") ] \
           [ -policy-link-text (default "#cookie-consent.policy-link-text#") ] \
           [ -position (default "pushdown") ] \
           [ -subsite_id:required subsite_id:required ]

Create the Class for configuring the cookie consent widget. This class requires nx from the next-scripting framework. https://next-scripting.org/xowiki/ which is automatically installed for XOTcl2 via https://openacs.org/xowiki/naviserver-openacs
Defined in packages/cookie-consent/tcl/cookie-consent-procs.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nx::Object[i]

Methods (to be applied on instances)

  • render_js (scripted, public)

     <instance of cookieconsent::CookieConsent[i]> render_js

    Perform the actual rendering of the cookie consent widget.

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_cookie_consent__setup cookie_consent__setup (test cookie-consent) cookieconsent::CookieConsent instproc render_js cookieconsent::CookieConsent instproc render_js test_cookie_consent__setup->cookieconsent::CookieConsent instproc render_js test_create_form_with_form_instance create_form_with_form_instance (test xowiki) test_create_form_with_form_instance->cookieconsent::CookieConsent instproc render_js lang::util::localize lang::util::localize (public) cookieconsent::CookieConsent instproc render_js->lang::util::localize

    Testcases:
    cookie_consent__setup, create_form_with_form_instance