Databases Reference
In-Depth Information
p version => NULL
);
apex javascript.add library (
p name => 'jquery.ui.button.min',
p directory => apex application.g image prefix || 'libraries/
jquery-ui/1.8/ui/minified/',
p version => NULL
);
apex javascript.add library (
p name => 'fullcalendar.min',
p directory => p plugin.file prefix,
p version => NULL
);
IF l jqueryui theme IS NOT NULL
THEN
apex css.add file(
p name => 'jquery-ui',
p directory => apex application.g image prefix || 'libraries/
jquery-ui/1.8/themes/' || l jqueryui theme || '/',
p version => NULL
);
END IF;
apex css.add file(
p name => 'fullcalendar',
p directory => p plugin.file prefix,
p version => NULL
);
The following lines of code build up a string of JavaScript and then use
APEX JAVASCRIPT.ADD ONLOAD CODE to add the code to the page so that it will be executed when the DOM
is ready. The JavaScript code initializes the calendar widget with the input element.
APEX JAVASCRIPT.ADD ATTRIBUTE is used to add attributes to the options object of the widget.
l onload code := 'apex.jQuery("div#' || p region.static id || '").calendar({' || l crlf
|| ' ' || apex javascript.add attribute('theme', l jqueryui theme, TRUE, TRUE) ||
l crlf
|| ' ' || apex javascript.add attribute('ajaxIdentifier',
apex plugin.get ajax identifier(), FALSE, FALSE) || l crlf
|| '});';
apex javascript.add onload code (
p code => l onload code
);
RETURN l retval;
END calendar render;
Search WWH ::




Custom Search