Home > UI/UX Development (Page 7)

Add custom filter on list with paging in angular material

we have angular object  [crayon-6859293da9aac511240073/] In above, we have one pages objects which stores page list and page count. Consider, we have page status filters. which values is stored in 'filterData.selectedPageStatus' object that is we are passing to page custom filter. so out html looks like below [crayon-6859293da9ab3871490153/] Now, add below code in app.js [crayon-6859293da9ab6108429357/] Here we done.  Please

This Article is TAGGED in . Read more

Ecmascript 6: Scoping – Block scoped variable

Javascript followed function level and global scope for a very long time which created a lot of problems. Developers could declare a variable anywhere as global and variables lived even outside loops and if else blocks because of the function level scope. Ecmascript 6 came up with support for block level

This Article is TAGGED in , , . Read more

Calculate height and width of an element with respect to window/document height and width

Get height of window $(window).height(): Returns height of visible viewport/screen (does not include height of scrollable content) Get height of the page $(document).height(): Returns height of the length of the content/page (includes the height of the scrollable content) Get width of window $(window).width(): Returns width of visible viewport minus width of scrollbar

This Article is TAGGED in , , . Read more

Add Videos using media upload URL in WordPress

We have seen how to add WordPress media upload button in a page or metabox. You can find the steps here. Similarly you can also add a media upload button for videos, since the above link has media upload type as image media-upload.php?type=image&TB_iframe=true How do we upload videos instead? Follow the steps

This Article is TAGGED in , , . Read more

Selectors! Types and difference

Basic Selectors:Universal Selector: [crayon-6859293daae33827162010/]ID, Class Selector[crayon-6859293daae38051610388/]Element/ Tag Selector[crayon-6859293daae3c565306608/]Attribute Selector[crayon-6859293daae3e330885367/]Descendant Selector: Selects all elements(any level deep) that are under the selector. For ex. following code will select all the span elements that are inside div element.[crayon-6859293daae41870050569/]Child Selector: Selects all elements that are one level under the selector. For ex. following code will select all the span elements at

Read more

Javascript window.location.hash

Javascript window.location.hash returns the value of URL that comes after "#"For ex.             https://mundrisoft.com/tech-bytes/wp-admin/post-new.php#searchtermwindow.location.hash will return "#searchterm" in browsers IE 11, Edge and Chrome  and Mozilla For an empty hash URL:          https://mundrisoft.com/tech-bytes/wp-admin/post-new.php#window.location.hash will return"#" -> Chrome, Mozilla, IE 11"" -> EdgeSo, keep this little

This Article is TAGGED in , , , . Read more

Web Developer Pre-release Testing Checklist

When we talk about an emerging full-stack web developer, there are certain things that are bound to be missed owing to a developer background and a programmer mindset. A checklist with all things that should be considered before release to QA or launch will help a developer to deliver a not

This Article is TAGGED in , , , , , , . Read more