Adobe Dreamweaver API Reference CS5 Uživatelský manuál Strana 448

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 533
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 447
443
DREAMWEAVER API REFERENCE
Code
Last updated 8/27/2013
The bClassPattern argument is a Boolean value. If set to true, states that the function belongs to a "class" instance
and is not static. The default value is
false. This argument is optional.
The bAddToObjectMethodList argument is a Boolean. If set to true, it enables the user to add a list of static
functions. The default value is
true. This argument is optional.
The restriction argument is a string. This argument is optional and if not specified, it does not place any
constraint. On a web page that contains both client-side and server-side languages, you can use this argument to
restrict the use of code hints to one of the following:
A specific language section
A code block
Returns
Nothing.
Example
The following example of the dw.codeHints.addFunction() function adds the function name pattern
out.newLine() to the Code Hints menu group CodeHints_Object_Methods and makes it active only for JSP
document types:
dw.codeHints.addFunction(
"CodeHints_Object_Methods",
"out.newLine()",
"JSP")
dreamweaver.codeHints.resetMenu()
Availability
Dreamweaver MX.
Description
Resets the specified menu tag or function tag to its state immediately after Dreamweaver reads the CodeHints.xml file.
In other words, a call to this function erases the effect of previous calls to the
addMenu() and addFunction()
functions.
Arguments
menuGroupId, pattern, {doctypes}
The menuGroupId argument is the ID string attribute of a menugroup tag.
The pattern argument is a string that specifies the pattern attribute for the new menu or function tag to be reset.
The doctypes argument, which is optional, specifies that this menu is active for only certain document types. You
can specify the
doctypes argument as a comma-separated list of document type IDs. For a list of Dreamweaver
document types, see the Dreamweaver Configuration/Documenttypes/MMDocumentTypes.xml file.
Returns
Nothing.
Zobrazit stránku 447
1 2 ... 443 444 445 446 447 448 449 450 451 452 453 ... 532 533

Komentáře k této Příručce

Žádné komentáře