{"id":1237,"date":"2023-11-27T20:13:40","date_gmt":"2023-11-27T12:13:40","guid":{"rendered":"https:\/\/www.tonghin.com.my\/blog\/?p=1237"},"modified":"2023-11-27T20:13:42","modified_gmt":"2023-11-27T12:13:42","slug":"adding-some-features-and-styling-the-task-from-last-week","status":"publish","type":"post","link":"https:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/","title":{"rendered":"Adding Some Features and Styling the Task from Last Week"},"content":{"rendered":"\n<p>Continuing the task from last week, I modified the arrangement of the item box in the main page as well as the \u201cprice\u201d and the \u201cstock in the item box itself horizontally by solving it with CSS style and I controlling the spaces between each of the item box. Besides that, I also adding two navigator tabs with \u201cCode\u201d and \u201cRecord\/Stock\u201d labels and adding the new table in the item details panel. In the content of the \u201cCode\u201d tab, I added the Barcode of the item and arrange them horizontally and space evenly. In the content of the \u201cRecord \/ Stock\u201d tab, I added the \u201cHistory Sales Record\u201d table and \u201cStock\u201d table and space evenly between each of them.<br><br>I also modifying the styles of the item detail panel according to the colour, effect and position of the elements inside the panel, especially the division between them. I separate them into 3 part, the main part includes the image, name, stock, price, UoM and some description or remark, the second part include the navigator tab and the content of it, and the third part include the extra information such as the attributes.<br><br>On the other hand, I added the additional table as a panel to show the detail of the item and it will pop out when I clicked the particular button in the item detail panel. I also added the dropdown menu and it\u2019s sub navigator, the \u201cFilter\u201d sidebar which is on the right-hand side of the item page \u2013 able to filter the item according to the brand of the item and able to sort the price from lower price to lower or vice versa and yet the \u201cPagination\u201d feature which will control the page of maximum 20 items per page.<br><br>Lastly, I modified the position of the drawer navigation to the left-top of the Item Page and push all the elements to the right when I clicked the hamburger icon. Previously, it was appearing under the item list, Mr. Peter suggest me to create a new page that include the drawer and the header only to settle this problem, but actually it is just a division problem, I changed the arrangement of the code according to the division to overcome this problem. I also modified the styling of the dropdown menu with the colour, hover effect and the width of the menu list.<br><br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Continuing the task from last week, I modified the arrangement of the item box in the main page as well as the \u201cprice\u201d and the \u201cstock in the item box itself horizontally by solving it with CSS style and I controlling the spaces between each of the item box. Besides that, I also adding two &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Adding Some Features and Styling the Task from Last Week&#8221;<\/span><\/a><\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Adding Some Features and Styling the Task from Last Week | Tong Hin&#039;s Blog<\/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:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding Some Features and Styling the Task from Last Week | Tong Hin&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Continuing the task from last week, I modified the arrangement of the item box in the main page as well as the \u201cprice\u201d and the \u201cstock in the item box itself horizontally by solving it with CSS style and I controlling the spaces between each of the item box. Besides that, I also adding two &hellip; Continue reading &quot;Adding Some Features and Styling the Task from Last Week&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/\" \/>\n<meta property=\"og:site_name\" content=\"Tong Hin&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-27T12:13:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-27T12:13:42+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"2 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\",\"name\":\"TONG HIN MACHINERY\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"sameAs\":[\"https:\/\/www.youtube.com\/channel\/UC60EoxJMNbu8mV0LuEGfrBg\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/wp-content\/uploads\/2020\/10\/web_logo_180_180.jpg\",\"width\":180,\"height\":180,\"caption\":\"TONG HIN MACHINERY\"},\"image\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#website\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"name\":\"Tong Hin&#039;s Blog\",\"description\":\"Sharing About Technology\",\"publisher\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.tonghin.com.my\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/#webpage\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/\",\"name\":\"Adding Some Features and Styling the Task from Last Week | Tong Hin&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#website\"},\"datePublished\":\"2023-11-27T12:13:40+00:00\",\"dateModified\":\"2023-11-27T12:13:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/\",\"name\":\"Adding Some Features and Styling the Task from Last Week\"}}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#\/schema\/person\/0a4f4c1643f00588066281a801cc7f69\"},\"headline\":\"Adding Some Features and Styling the Task from Last Week\",\"datePublished\":\"2023-11-27T12:13:40+00:00\",\"dateModified\":\"2023-11-27T12:13:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/#webpage\"},\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\"},\"articleSection\":\"Experiential\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.tonghin.com.my\/blog\/2023\/11\/27\/adding-some-features-and-styling-the-task-from-last-week\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#\/schema\/person\/0a4f4c1643f00588066281a801cc7f69\",\"name\":\"Tan Hui Ying\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2743a34b5a8d2de074f4531c061b78f7?s=96&d=mm&r=g\",\"caption\":\"Tan Hui Ying\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/1237"}],"collection":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/comments?post=1237"}],"version-history":[{"count":2,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/1237\/revisions"}],"predecessor-version":[{"id":1241,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/1237\/revisions\/1241"}],"wp:attachment":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/media?parent=1237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/categories?post=1237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/tags?post=1237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}