<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Buddhi Vikasitha</title>
    <description>The latest articles on DEV Community by Buddhi Vikasitha (@buddhiv).</description>
    <link>https://dev.to/buddhiv</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F730609%2Fdffcca32-0837-46d1-95bb-486b6bc089fb.jpeg</url>
      <title>DEV Community: Buddhi Vikasitha</title>
      <link>https://dev.to/buddhiv</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/buddhiv"/>
    <language>en</language>
    <item>
      <title>Sticky Table Header with Horizontal Scroll</title>
      <dc:creator>Buddhi Vikasitha</dc:creator>
      <pubDate>Fri, 30 Sep 2022 07:19:05 +0000</pubDate>
      <link>https://dev.to/buddhiv/sticky-table-header-with-horizontal-scroll-jc8</link>
      <guid>https://dev.to/buddhiv/sticky-table-header-with-horizontal-scroll-jc8</guid>
      <description>&lt;p&gt;The sticky behaviours bring a lot of UX improvements to the end user. It can stick and show you content that are supposed to go out of the current container to make better UX.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
I have added some sticky properties to a content displaying a table's name and record count which is above the table. In this way the user can always see the table information when he is scrolling past the header in this multiple table view.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Initial View&lt;/em&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZZ-n062L--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xcotjtc1cujrhbo2zmmk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZZ-n062L--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xcotjtc1cujrhbo2zmmk.png" alt="Initial view of the tables" width="880" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;After scrolling a bit further down&lt;/em&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--svQ64n0l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nq3qao6qsjfjtaq2rhj1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--svQ64n0l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nq3qao6qsjfjtaq2rhj1.png" alt="Scrolled view of the tables" width="880" height="361"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Since the sticky properties does not work when overflow attributes are present, I have a small issue pending since I started this development.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I need to stick the table header to the top along with the current table information as I have mentioned.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Also I need to add a horizontal scroll to the table body when the viewport width is not enough to cover the content.&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;This behaviour is present in Monday.com.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xyQCYMZr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/26eal7u20dhr4y03h4hw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xyQCYMZr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/26eal7u20dhr4y03h4hw.png" alt="Monday.com sticky headers" width="880" height="155"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The issue is that the overflow styles that I need to add to the table breaks the sticky position of the header.&lt;/p&gt;

&lt;p&gt;My concern is as follows.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Is this achievable using normal CSS styles?&lt;/li&gt;
&lt;li&gt;If so how to implement without breaking the table's normal behaviours.&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Let me know of any examples, Codepens related to this. I have tried multiple examples so I'll let you know if it works.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks in advance.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>css</category>
      <category>html</category>
    </item>
    <item>
      <title>Best content to include in a default route?</title>
      <dc:creator>Buddhi Vikasitha</dc:creator>
      <pubDate>Wed, 20 Oct 2021 06:45:51 +0000</pubDate>
      <link>https://dev.to/buddhiv/best-content-to-include-in-a-default-route-5b9c</link>
      <guid>https://dev.to/buddhiv/best-content-to-include-in-a-default-route-5b9c</guid>
      <description>&lt;p&gt;I feel like this is a good point for a discussion and not a question. I have the set of URLs as follows.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://domain/api/users"&gt;https://domain/api/users&lt;/a&gt;&lt;br&gt;
&lt;a href="https://domain/api/users/:userId"&gt;https://domain/api/users/:userId&lt;/a&gt;&lt;br&gt;
&lt;a href="https://domain/api/posts"&gt;https://domain/api/posts&lt;/a&gt;&lt;br&gt;
&lt;a href="https://domain/api/posts/:postId"&gt;https://domain/api/posts/:postId&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As usual I return json content when the above APIs are called.&lt;/p&gt;

&lt;p&gt;What should be returned if the following APIs are called?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://domain/api/"&gt;https://domain/api/&lt;/a&gt;&lt;br&gt;
&lt;a href="https://domain/"&gt;https://domain/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Is it just 404-Not Found?&lt;br&gt;
What is more suitable?&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>programming</category>
      <category>api</category>
    </item>
  </channel>
</rss>
