Visualforce 内置组件

发布时间:2022-06-08 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了Visualforce 内置组件脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

1.Visualforce开发工具

  • DeveloPEr Console 是功能强大且齐全的工具,用于 salesforce 组织内部的 Lightning 平台开发。

  还有两种内置方法可用在 Salesforce 中创建和编辑 Visualforce 页面。

  • 开发模式下的 quick fix(快速修复)和页脚是快速创建新页面或对现有页面进行简短编辑的快捷方式。适用于快速更改或创建一个简短页面,并在其合并到应用程序页面之前在空白板上测试一些新代码。

  the development mode “quick fix” and footer is a fast way to quickly create a new page, or make short edITs to an existing page. It’s great for quick changes or when you want to create a short page to test out some new code on a blank slate, before incorporating it into your app pages.

  • 通过在“快速查找”框中输入 “Visualforce 页面”,然后选择 Visualforce Pages(Visualforce 页面),可以在“设置”中使用设置编辑器,这是最基础的编辑器,但它提供了对 Developer Console 或开发模式页脚中不可用页面设置的访问。

  The SETUP editor, available in Setup by entering Visualforce Pages in the Quick Find box, then selecting Visualforce Pages, is the most basic editor, but it PRovides access to page settings that aren’t available in the Developer Console or development mode footer.

  • 还有多种可用的外部工具,例如用于 Eclipse 的 Lightning 平台 IDE 插件,它可以连接到您的 Salesforce 组织并用于 Visualforce 开发。

 

  There are also a number of external tools available, such as the Lightning Platform IDE plug-in for Eclipse, which can connect to your Salesforce organization and be used for Visualforce development.

2.Visualforce内置组件(built-in components)Visualforce 拥有近 150 个内置组件,可提供各种用户界面元素和行为。

Visualforce 标准组件( Standard Component Reference )引用中列出了这些组件,并记录了它们的属性,包括如何使用组件的示例代码。

 

示例代码

<apex:page sidebar="false" showHeader="false">
    <h1>Hello World</h1>
</apex:page>

  

※sidebar 和 showHeader 属性在 Lightning Experience 中无效,并且无法抑制 Lightning Experience 标头。虽然 showHeader 默认值是 true,但是它对 Lightning Experience 无效。

Note that both the sidebar and showHeader attribute have no effect in Lightning Experience, and that there’s no way to supPress the Lightning Experience header. Although the default value of showHeader is true, it has no effect in Lightning Experience.

页面包含一些 Salesforce 样式表,可让您匹配 Salesforce 选择的字体、大小等。要抑制 Salesforce 的所有输出,同样需要添加 standardstylesheets="false" 来删除样式。The page still includes some Salesforce style sheets, which let you match Salesforce choices for fonts, size, and so on. To suppress all Salesforce output, add standardStylesheets="false" to remove the styles as well.

  • <apex:pageBlock> 是一种结构化的用户界面元素,用于对页面上的相关项目进行分组
  • <apex:pageBlockSection> 是向页面添加结构和层级的另一个组件。显示时,用户可以折叠 <apex:pageBlockSection> 元素以隐藏除节标题以外的所有元素。

  ※ <apex:pageBlockSection> 标签需要嵌套在 <apex:pageBlock> 标签内。如果不将子标签 <apex:pageBlockSection> 放入父标签 <apex:pageBlock> 中,则无法使用子标签。

脚本宝典总结

以上是脚本宝典为你收集整理的Visualforce 内置组件全部内容,希望文章能够帮你解决Visualforce 内置组件所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。