{"id":118,"date":"2014-07-07T15:10:45","date_gmt":"2014-07-07T14:10:45","guid":{"rendered":"http:\/\/elstarit.nl\/?p=118"},"modified":"2014-07-07T15:10:45","modified_gmt":"2014-07-07T14:10:45","slug":"bootstrap-datetimepicker-xpages","status":"publish","type":"post","link":"https:\/\/elstarit.nl\/?p=118","title":{"rendered":"Bootstrap datetimepicker for XPages"},"content":{"rendered":"<p>On my current project I use bootstrap to make the whole app responsive.<br \/>\nFor some forms I needed a date and time picker, so my first stop is Mark Leusink&#8217;s <a title=\"Bootstrap4XPages demo website\" href=\"http:\/\/bootstrap4xpages.com\/bs4xp\/demos.nsf\" target=\"_blank\">Bootstrap4XPages demo website<\/a>, where I discovered a date and time picker.<br \/>\nAfter some trying to get the styling right, I turned to google to find me an alternative.<br \/>\nAnd I found an alternative, <a title=\"bootstrap datetime picker\" href=\"http:\/\/eonasdan.github.io\/bootstrap-datetimepicker\/\" target=\"_blank\">bootstrap-datetimepicker<\/a>. It contains a date and time picker.<\/p>\n<p>[dropshadowbox align=&#8221;none&#8221; effect=&#8221;lifted-both&#8221; width=&#8221;400px&#8221; height=&#8221;&#8221; background_color=&#8221;#ffffff&#8221; border_width=&#8221;1&#8243; border_color=&#8221;#dddddd&#8221; ]<a href=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.44.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-125\" src=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.44.png\" alt=\"Bootstrap Datepicker\" width=\"862\" height=\"416\" srcset=\"https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.44.png 862w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.44-300x144.png 300w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.44-518x250.png 518w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/a>[\/dropshadowbox]<\/p>\n<p>[dropshadowbox align=&#8221;none&#8221; effect=&#8221;lifted-both&#8221; width=&#8221;400px&#8221; height=&#8221;&#8221; background_color=&#8221;#ffffff&#8221; border_width=&#8221;1&#8243; border_color=&#8221;#dddddd&#8221; ]<a href=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.56.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-126\" src=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.56.png\" alt=\"Bootstrap Timepicker\" width=\"876\" height=\"636\" srcset=\"https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.56.png 876w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.56-300x217.png 300w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.56-344x250.png 344w\" sizes=\"auto, (max-width: 876px) 100vw, 876px\" \/><\/a>[\/dropshadowbox]<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Implement it in a XPage.<\/strong><\/p>\n<p>I have created 2 custom controls, 1 for a time picker and 1 for a date picker, and added a few properties to make it reusable.<\/p>\n<p>The code for the date picker looks like,<\/p>\n<p>[dropshadowbox align=&#8221;none&#8221; effect=&#8221;lifted-both&#8221; width=&#8221;600px&#8221; height=&#8221;&#8221; background_color=&#8221;#ffffff&#8221; border_width=&#8221;1&#8243; border_color=&#8221;#dddddd&#8221; ]<a href=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-16.03.34.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-124\" src=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-16.03.34-1024x384.png\" alt=\"Datepicker code\" width=\"1024\" height=\"384\" srcset=\"https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-16.03.34-1024x384.png 1024w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-16.03.34-300x112.png 300w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-16.03.34-665x250.png 665w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a>[\/dropshadowbox]<\/p>\n<p>To trigger the datetimepicker code, there is only a few line of code needed.<\/p>\n<p>[dropshadowbox align=&#8221;none&#8221; effect=&#8221;lifted-both&#8221; width=&#8221;300px&#8221; height=&#8221;&#8221; background_color=&#8221;#ffffff&#8221; border_width=&#8221;1&#8243; border_color=&#8221;#dddddd&#8221; ]\u0013<a href=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-15.54.28.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-122\" src=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-15.54.28-300x68.png\" alt=\"Init the DatePicker\" width=\"300\" height=\"68\" srcset=\"https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-15.54.28-300x68.png 300w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-15.54.28.png 756w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>[\/dropshadowbox]<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On my current project I use bootstrap to make the whole app responsive. For some forms I needed a date and time picker, so my first stop is Mark Leusink&#8217;s Bootstrap4XPages demo website, where I discovered a date and time picker. After some trying to get the styling right, I turned to google to find <a class=\"read-more\" href=\"https:\/\/elstarit.nl\/?p=118\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2],"tags":[29,66,12],"class_list":["post-118","post","type-post","status-publish","format-standard","hentry","category-development","tag-bootstrap","tag-development","tag-xpages"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bootstrap datetimepicker for XPages<\/title>\n<meta name=\"description\" content=\"Bootstrap datetimepicker for XPages\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elstarit.nl\/?p=118\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bootstrap datetimepicker for XPages\" \/>\n<meta property=\"og:description\" content=\"Bootstrap datetimepicker for XPages\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elstarit.nl\/?p=118\" \/>\n<meta property=\"og:site_name\" content=\"elstar IT\" \/>\n<meta property=\"article:published_time\" content=\"2014-07-07T14:10:45+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.44.png\" \/>\n<meta name=\"author\" content=\"flinden68\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"flinden68\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=118#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=118\"},\"author\":{\"name\":\"flinden68\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/#\\\/schema\\\/person\\\/426456e816ad57bf411d5d2bb9768935\"},\"headline\":\"Bootstrap datetimepicker for XPages\",\"datePublished\":\"2014-07-07T14:10:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=118\"},\"wordCount\":197,\"commentCount\":2,\"image\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=118#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/elstarit.nl\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/Screen-Shot-2014-07-07-at-07.01.44.png\",\"keywords\":[\"bootstrap\",\"development\",\"xpages\"],\"articleSection\":[\"development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/elstarit.nl\\\/?p=118#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=118\",\"url\":\"https:\\\/\\\/elstarit.nl\\\/?p=118\",\"name\":\"Bootstrap datetimepicker for XPages\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=118#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=118#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/elstarit.nl\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/Screen-Shot-2014-07-07-at-07.01.44.png\",\"datePublished\":\"2014-07-07T14:10:45+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/#\\\/schema\\\/person\\\/426456e816ad57bf411d5d2bb9768935\"},\"description\":\"Bootstrap datetimepicker for XPages\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=118#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elstarit.nl\\\/?p=118\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=118#primaryimage\",\"url\":\"http:\\\/\\\/elstarit.nl\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/Screen-Shot-2014-07-07-at-07.01.44.png\",\"contentUrl\":\"http:\\\/\\\/elstarit.nl\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/Screen-Shot-2014-07-07-at-07.01.44.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=118#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elstarit.nl\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"development\",\"item\":\"https:\\\/\\\/elstarit.nl\\\/?cat=2\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Bootstrap datetimepicker for XPages\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/#website\",\"url\":\"https:\\\/\\\/elstarit.nl\\\/\",\"name\":\"elstar IT\",\"description\":\"Fullstack | Java | Tech Speaker | Tech Coach | Frank van der Linden\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elstarit.nl\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/#\\\/schema\\\/person\\\/426456e816ad57bf411d5d2bb9768935\",\"name\":\"flinden68\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b915e82bbf3665adb6f7cef5acc5292b5958aec259f763ccde322ec72c643ec0?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b915e82bbf3665adb6f7cef5acc5292b5958aec259f763ccde322ec72c643ec0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b915e82bbf3665adb6f7cef5acc5292b5958aec259f763ccde322ec72c643ec0?s=96&d=mm&r=g\",\"caption\":\"flinden68\"},\"sameAs\":[\"http:\\\/\\\/www.elstarit.nl\",\"https:\\\/\\\/x.com\\\/elstarit\"],\"url\":\"https:\\\/\\\/elstarit.nl\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bootstrap datetimepicker for XPages","description":"Bootstrap datetimepicker for XPages","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elstarit.nl\/?p=118","og_locale":"en_US","og_type":"article","og_title":"Bootstrap datetimepicker for XPages","og_description":"Bootstrap datetimepicker for XPages","og_url":"https:\/\/elstarit.nl\/?p=118","og_site_name":"elstar IT","article_published_time":"2014-07-07T14:10:45+00:00","og_image":[{"url":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.44.png","type":"","width":"","height":""}],"author":"flinden68","twitter_misc":{"Written by":"flinden68","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elstarit.nl\/?p=118#article","isPartOf":{"@id":"https:\/\/elstarit.nl\/?p=118"},"author":{"name":"flinden68","@id":"https:\/\/elstarit.nl\/#\/schema\/person\/426456e816ad57bf411d5d2bb9768935"},"headline":"Bootstrap datetimepicker for XPages","datePublished":"2014-07-07T14:10:45+00:00","mainEntityOfPage":{"@id":"https:\/\/elstarit.nl\/?p=118"},"wordCount":197,"commentCount":2,"image":{"@id":"https:\/\/elstarit.nl\/?p=118#primaryimage"},"thumbnailUrl":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.44.png","keywords":["bootstrap","development","xpages"],"articleSection":["development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/elstarit.nl\/?p=118#respond"]}]},{"@type":"WebPage","@id":"https:\/\/elstarit.nl\/?p=118","url":"https:\/\/elstarit.nl\/?p=118","name":"Bootstrap datetimepicker for XPages","isPartOf":{"@id":"https:\/\/elstarit.nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/elstarit.nl\/?p=118#primaryimage"},"image":{"@id":"https:\/\/elstarit.nl\/?p=118#primaryimage"},"thumbnailUrl":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.44.png","datePublished":"2014-07-07T14:10:45+00:00","author":{"@id":"https:\/\/elstarit.nl\/#\/schema\/person\/426456e816ad57bf411d5d2bb9768935"},"description":"Bootstrap datetimepicker for XPages","breadcrumb":{"@id":"https:\/\/elstarit.nl\/?p=118#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elstarit.nl\/?p=118"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elstarit.nl\/?p=118#primaryimage","url":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.44.png","contentUrl":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-07-at-07.01.44.png"},{"@type":"BreadcrumbList","@id":"https:\/\/elstarit.nl\/?p=118#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elstarit.nl\/"},{"@type":"ListItem","position":2,"name":"development","item":"https:\/\/elstarit.nl\/?cat=2"},{"@type":"ListItem","position":3,"name":"Bootstrap datetimepicker for XPages"}]},{"@type":"WebSite","@id":"https:\/\/elstarit.nl\/#website","url":"https:\/\/elstarit.nl\/","name":"elstar IT","description":"Fullstack | Java | Tech Speaker | Tech Coach | Frank van der Linden","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elstarit.nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elstarit.nl\/#\/schema\/person\/426456e816ad57bf411d5d2bb9768935","name":"flinden68","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b915e82bbf3665adb6f7cef5acc5292b5958aec259f763ccde322ec72c643ec0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b915e82bbf3665adb6f7cef5acc5292b5958aec259f763ccde322ec72c643ec0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b915e82bbf3665adb6f7cef5acc5292b5958aec259f763ccde322ec72c643ec0?s=96&d=mm&r=g","caption":"flinden68"},"sameAs":["http:\/\/www.elstarit.nl","https:\/\/x.com\/elstarit"],"url":"https:\/\/elstarit.nl\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/elstarit.nl\/index.php?rest_route=\/wp\/v2\/posts\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elstarit.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elstarit.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elstarit.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elstarit.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=118"}],"version-history":[{"count":6,"href":"https:\/\/elstarit.nl\/index.php?rest_route=\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":128,"href":"https:\/\/elstarit.nl\/index.php?rest_route=\/wp\/v2\/posts\/118\/revisions\/128"}],"wp:attachment":[{"href":"https:\/\/elstarit.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elstarit.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elstarit.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}