Friday, 19 February 2016

What is the WebPart in SharePoint the basics of Out of the Box (OTB) WebPart in SharePoint2013


what is a WebPart?


WebPart in SharePoint, from a developer perspective, is basically a user control, packaged and deployed at Site Collection level to be re used across all the sites under it.
  • From an End User perspective it’s a single unit of re-usable component that can be added to a SharePoint page to perform a specific task.
Now lets see what is there  inside a SharePoint WebPart.
Step1:
Edit the page  under the settings menu in the right hand side corner of the page as shown below screenshot.

Step2:
Select the WebPart menu of one of the WebPart available in that page. Select the “Edit Web Part” to view the properties of WebPart.
After click on Edit Web Part it will displayed Properties window.

In the above Screen shot we can find out three categories in  the properties window.
These Categories are common to all Webparts irrespective of the type of WebPart.


  • Appearance
  • Layout
  • Advanced
We will discuss about each category in detailed.

Appearance Category



Properties:
1.Title:
                    Enter a webpart name what we like .
2.Height and width:
                   Enter Size of height and width

3.Chrome State
                   By default it is set as Normal, the other option is Minimized. If it’s set to Minimized the WebPart content will be hidden from display.
4.Chrome Type
                This property controls the display type of the WebPart. If this property is set as None , the WebPart displays the content without any border or title. If it is set to Default , then Title and Border will be displayed.


Layout Category




  Hide
Selecting this will hides the web part from display
Direction
Changes the direction of text (content) alignment
Zone
Displays the list of Web Part Zones available in that page. Can be used to move Web Parts from one zone to another.
Zone Index
The order in which web part has to be displayed within the web part zone. Need not to be in the continuous numbers. Web Parts will be displayed in the ascending order of Zone Index

Advanced Category



The Check Box items listed on top of Advanced Category are self-explanatory. This Items controls the behaviours of some of the properties that we have seen in previous category.
Export Mode
This property controls what has to be exported while selecting the Export Menu of Web part ( 3 in above Image)
Title URL
If title is enabled and value for this property is provided, the WebPart title behaves like a hyperlink and clicking that hyperlink will opens the URL that is provided in this property.
Help URL
The URL provided to this property acts a help document for this WebPart. Providing a value to this property enables Help menu in the Web Part. (Item 4 in the above Image)
Help Mode
This property controls the behaviour of opening the help page. Like, opening in same page, showing it as PopUp etc.
Catalogue Icon Image URL
This property would enable to provide a custom Image for WebPart in the WebPart Catalogue Listing (Can be seen while clicking the Add New WebPart Link). If you are developing a custom web part you can use this property to provide a custom image for your Web Part that has to be shown while selecting your WebPart to be added to the page.
Title Icon Image URL
Displays an image before the Web Part Title.


Thanks
--Shiva