class TileData
TileData is a class that represents a graphical tile element containing a clickable link, inheriting from ClientValue for Office 365 API integration.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/webparts/tile_data.py
4 - 5
simple
Purpose
This class serves as a data model for representing tile UI elements in Office 365 applications. Tiles are graphical components that users can click to navigate to links or perform actions. As a ClientValue subclass, it provides serialization/deserialization capabilities for communication with Office 365 services, allowing tile data to be transmitted between client and server.
Source Code
class TileData(ClientValue):
"""Represents a Tile that describes a graphical link the user can click."""
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
bases: Inherits from ClientValue, which provides base functionality for Office 365 client-side value objects including serialization, deserialization, and property management
Return Value
Instantiation returns a TileData object that represents a clickable tile. The object inherits all methods and properties from ClientValue, enabling it to be used in Office 365 API requests and responses. Specific return values depend on inherited methods from ClientValue.
Class Interface
Dependencies
office365
Required Imports
from office365.runtime.client_value import ClientValue
Usage Example
from office365.runtime.client_value import ClientValue
from your_module import TileData
# Instantiate a TileData object
tile = TileData()
# TileData inherits from ClientValue, so it can be used with Office 365 API operations
# Specific usage depends on the properties and methods inherited from ClientValue
# Typically used to represent tile data in SharePoint or other Office 365 services
# Example of potential usage in context:
# tile.set_property('title', 'My Tile')
# tile.set_property('url', 'https://example.com')
# tile.set_property('imageUrl', 'https://example.com/image.png')
Best Practices
- This class appears to be a minimal data model that relies heavily on its parent class ClientValue for functionality
- When using TileData, familiarize yourself with the ClientValue base class methods for setting and getting properties
- TileData instances should be used within the Office 365 SDK context where ClientValue objects are expected
- The class likely expects specific properties to be set (such as title, url, imageUrl) based on Office 365 tile specifications
- Always ensure proper serialization when transmitting TileData objects to Office 365 services
- This class serves as a type marker and data container, so instantiation should be followed by property assignment using inherited methods
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class Visualization 58.7% similar
-
class Certification 57.9% similar
-
class SharingLinkDefaultTemplate 56.7% similar
-
class TemplatizationMetaData 55.7% similar
-
class TenantCdnUrl 54.5% similar