{"id":135,"date":"2014-07-18T09:10:40","date_gmt":"2014-07-18T08:10:40","guid":{"rendered":"http:\/\/elstarit.nl\/?p=135"},"modified":"2014-09-24T20:07:12","modified_gmt":"2014-09-24T19:07:12","slug":"give-xpages-file-download-control-bootstrap-ui","status":"publish","type":"post","link":"https:\/\/elstarit.nl\/?p=135","title":{"rendered":"Give the XPages File download control a bootstrap UI"},"content":{"rendered":"<p>As I wrote before, I am developing a version 2.0 of Planning Portal app, with responsive design.<\/p>\n<p>My goal was to try get everything a bootstrap UI, <a title=\"Bootstrap UI for XPages File Upload component\" href=\"http:\/\/elstarit.nl\/?p=129\" target=\"_blank\">last blog<\/a> was about the File Upload control.<\/p>\n<p>At last the File Download Control was remaining. The display is not that bad, but I doesn&#8217;t like the remove icon.<\/p>\n<p>[dropshadowbox align=&#8221;none&#8221; effect=&#8221;lifted-both&#8221; width=&#8221;100%&#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-18-at-09.48.15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-136\" src=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-09.48.15-1024x56.png\" alt=\"File Download out-of-the-box\" width=\"1024\" height=\"56\" srcset=\"https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-09.48.15-1024x56.png 1024w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-09.48.15-300x16.png 300w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a>[\/dropshadowbox]<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Style the table<\/strong><\/p>\n<p>First step was to style the table to a more Bootstrap UI. It turned out to be pretty easy, like I did at the <a title=\"ViewPanel Bootstrap UI\" href=\"http:\/\/elstarit.nl\/?p=101\" target=\"_blank\">ViewPanel<\/a>.<\/p>\n<p>I added to my theme the following code, to tell my file download control which css class should be used<\/p>\n<p>[dropshadowbox align=&#8221;none&#8221; effect=&#8221;lifted-both&#8221; width=&#8221;450px&#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-18-at-09.56.30.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-137\" src=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-09.56.30.png\" alt=\"File Download Theme\" width=\"668\" height=\"250\" srcset=\"https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-09.56.30.png 668w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-09.56.30-300x112.png 300w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/a>[\/dropshadowbox]<\/p>\n<p><strong>Style the remove button<\/strong><\/p>\n<p>I noticed via Firebug, that the link tag around the remove icon has a role attribute, role=&#8221;button&#8221;. So I added some JQuery code , who will\u00a0add specific css classes to the link tag, to tell the link to be a button.<\/p>\n<p>Second line of JQuery code replaced the remove icon by tag with font awesome classes, to display a nice icon on the button.<\/p>\n<p>[dropshadowbox align=&#8221;none&#8221; effect=&#8221;lifted-both&#8221; width=&#8221;450px&#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-18-at-10.03.33.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-138\" src=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-10.03.33-1024x122.png\" alt=\"Screen Shot 2014-07-18 at 10.03.33\" width=\"1024\" height=\"122\" srcset=\"https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-10.03.33-1024x122.png 1024w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-10.03.33-300x36.png 300w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-10.03.33.png 1316w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a>[\/dropshadowbox]<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Final result<\/strong><\/p>\n<p>[dropshadowbox align=&#8221;none&#8221; effect=&#8221;lifted-both&#8221; width=&#8221;100%&#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-18-at-09.49.19.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-139\" src=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/bootstrapfiledownload.png\" alt=\"Screen Shot 2014-07-18 at 09.49.19\" width=\"1024\" height=\"94\" \/><\/a>[\/dropshadowbox]<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I wrote before, I am developing a version 2.0 of Planning Portal app, with responsive design. My goal was to try get everything a bootstrap UI, last blog was about the File Upload control. At last the File Download Control was remaining. The display is not that bad, but I doesn&#8217;t like the remove <a class=\"read-more\" href=\"https:\/\/elstarit.nl\/?p=135\">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,10,28,12],"class_list":["post-135","post","type-post","status-publish","format-standard","hentry","category-development","tag-bootstrap","tag-developement","tag-jquery","tag-xpages"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Give the XPages File download control a bootstrap UI - elstar IT<\/title>\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=135\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Give the XPages File download control a bootstrap UI - elstar IT\" \/>\n<meta property=\"og:description\" content=\"As I wrote before, I am developing a version 2.0 of Planning Portal app, with responsive design. My goal was to try get everything a bootstrap UI, last blog was about the File Upload control. At last the File Download Control was remaining. The display is not that bad, but I doesn&#8217;t like the remove Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elstarit.nl\/?p=135\" \/>\n<meta property=\"og:site_name\" content=\"elstar IT\" \/>\n<meta property=\"article:published_time\" content=\"2014-07-18T08:10:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-09-24T19:07:12+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-09.48.15-1024x56.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=135#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=135\"},\"author\":{\"name\":\"flinden68\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/#\\\/schema\\\/person\\\/426456e816ad57bf411d5d2bb9768935\"},\"headline\":\"Give the XPages File download control a bootstrap UI\",\"datePublished\":\"2014-07-18T08:10:40+00:00\",\"dateModified\":\"2014-09-24T19:07:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=135\"},\"wordCount\":253,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=135#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/elstarit.nl\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/Screen-Shot-2014-07-18-at-09.48.15-1024x56.png\",\"keywords\":[\"bootstrap\",\"developement\",\"jquery\",\"xpages\"],\"articleSection\":[\"development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/elstarit.nl\\\/?p=135#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=135\",\"url\":\"https:\\\/\\\/elstarit.nl\\\/?p=135\",\"name\":\"Give the XPages File download control a bootstrap UI - elstar IT\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=135#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=135#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/elstarit.nl\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/Screen-Shot-2014-07-18-at-09.48.15-1024x56.png\",\"datePublished\":\"2014-07-18T08:10:40+00:00\",\"dateModified\":\"2014-09-24T19:07:12+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/#\\\/schema\\\/person\\\/426456e816ad57bf411d5d2bb9768935\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=135#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elstarit.nl\\\/?p=135\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=135#primaryimage\",\"url\":\"http:\\\/\\\/elstarit.nl\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/Screen-Shot-2014-07-18-at-09.48.15-1024x56.png\",\"contentUrl\":\"http:\\\/\\\/elstarit.nl\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/Screen-Shot-2014-07-18-at-09.48.15-1024x56.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=135#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\":\"Give the XPages File download control a bootstrap UI\"}]},{\"@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":"Give the XPages File download control a bootstrap UI - elstar IT","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=135","og_locale":"en_US","og_type":"article","og_title":"Give the XPages File download control a bootstrap UI - elstar IT","og_description":"As I wrote before, I am developing a version 2.0 of Planning Portal app, with responsive design. My goal was to try get everything a bootstrap UI, last blog was about the File Upload control. At last the File Download Control was remaining. The display is not that bad, but I doesn&#8217;t like the remove Read More","og_url":"https:\/\/elstarit.nl\/?p=135","og_site_name":"elstar IT","article_published_time":"2014-07-18T08:10:40+00:00","article_modified_time":"2014-09-24T19:07:12+00:00","og_image":[{"url":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-09.48.15-1024x56.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=135#article","isPartOf":{"@id":"https:\/\/elstarit.nl\/?p=135"},"author":{"name":"flinden68","@id":"https:\/\/elstarit.nl\/#\/schema\/person\/426456e816ad57bf411d5d2bb9768935"},"headline":"Give the XPages File download control a bootstrap UI","datePublished":"2014-07-18T08:10:40+00:00","dateModified":"2014-09-24T19:07:12+00:00","mainEntityOfPage":{"@id":"https:\/\/elstarit.nl\/?p=135"},"wordCount":253,"commentCount":0,"image":{"@id":"https:\/\/elstarit.nl\/?p=135#primaryimage"},"thumbnailUrl":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-09.48.15-1024x56.png","keywords":["bootstrap","developement","jquery","xpages"],"articleSection":["development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/elstarit.nl\/?p=135#respond"]}]},{"@type":"WebPage","@id":"https:\/\/elstarit.nl\/?p=135","url":"https:\/\/elstarit.nl\/?p=135","name":"Give the XPages File download control a bootstrap UI - elstar IT","isPartOf":{"@id":"https:\/\/elstarit.nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/elstarit.nl\/?p=135#primaryimage"},"image":{"@id":"https:\/\/elstarit.nl\/?p=135#primaryimage"},"thumbnailUrl":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-09.48.15-1024x56.png","datePublished":"2014-07-18T08:10:40+00:00","dateModified":"2014-09-24T19:07:12+00:00","author":{"@id":"https:\/\/elstarit.nl\/#\/schema\/person\/426456e816ad57bf411d5d2bb9768935"},"breadcrumb":{"@id":"https:\/\/elstarit.nl\/?p=135#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elstarit.nl\/?p=135"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elstarit.nl\/?p=135#primaryimage","url":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-09.48.15-1024x56.png","contentUrl":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-18-at-09.48.15-1024x56.png"},{"@type":"BreadcrumbList","@id":"https:\/\/elstarit.nl\/?p=135#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":"Give the XPages File download control a bootstrap UI"}]},{"@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\/135","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=135"}],"version-history":[{"count":4,"href":"https:\/\/elstarit.nl\/index.php?rest_route=\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":199,"href":"https:\/\/elstarit.nl\/index.php?rest_route=\/wp\/v2\/posts\/135\/revisions\/199"}],"wp:attachment":[{"href":"https:\/\/elstarit.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elstarit.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elstarit.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}