ChrisNeedSpace / xaf-tooltips

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XAF Tooltips v1.0

Compatible with XAF versions:

  • WEB only
  • 12.1.10

Description

This is a feature for DevExpress eXpressAppFramework (XAF) that provides Tooltips - simple easy-defined mechanism that integrates with detail views:

https://raw.github.com/KrzysztofKielce/xaf-tooltips/master/Screenshot.png

Functionality

  • is easy defined
  • uses jQuery and jQuery-ui tooltip
  • supports html tags
  • no character number limit (as in standard IE browser dialog)

Example of use

Set an attribute on your entity property:

[Tooltip("This is a sample tooltip from an <br/><br/>(some BR tags)<br/><br/><br/><br/>attribute")]

Or set a text in Model.DesignedDiffs.xafml (in a detail view layout item)

Significant files:

  • SampleProject.Module\Infrastructure\ModelExtenders\Tooltips\TooltipAttribute.cs (new)
  • SampleProject.Module\Infrastructure\ModelExtenders\Tooltips\TooltipModelExtenders.cs (new)
  • SampleProject.Module\Module.cs - modified ExtendModelInterfaces()
  • SampleProject.Module.Web\Infrastructure\Layout\CustomLayoutTemplates.cs (new)
  • SampleProject.Module.Web\Infrastructure\Layout\WebLayoutController.cs (new)
  • SampleProject.Web\Default.aspx, DefaultVertical.aspx, Dialog.aspx - modified head section
  • SampleProject.Web\scripts\jquery-ui.min.js (new)
  • SampleProject.Web\scripts\jquery.min.js (new)
  • SampleProject.Web\style.css (new)

Installation

  1. Install XAF.
  2. Get the source code for this plugin from github, either using git, or downloading directly:
    • To download using git, install git and then type git clone git@github.com:KrzysztofKielce/xaf-tooltips.git backup at the command prompt (on Linux, Windows is a bit different)
    • To download directly, go to the project page and click Download
  3. Convert the sample project to your current version via project converter tool (it's located in your menu start/DevExpress DXperience XX.X/Tools/DXperience XX.X Project Converter).
  4. Run the project and open a detail view of any "Projekt" object.
  5. If you don't want to use the sample project, create your own and add the significant files. Each file in the repository has a namespace that indicates which project it refers to (Module, Module.Win, Module.Web, Win or Web). You need to copy the files to corresponding places in your project.

CAUTION!

If you are using the "CaptionWidth" mechanism together with tooltips, you should uncomment the code section from CustomLayoutItemTemplates.cs file.

Disclaimer

This is beta code. It is probably okay for production environments, but may not work exactly as expected. Refunds will not be given. If it breaks, you get to keep both parts.

License

All code herein is under the Do What The Fuck You Want To Public License (WTFPL).

About XAF

The eXpressApp Framework (XAF) is a modern and flexible application framework that allows you to create powerful line-of-business applications that simultaneously target Windows and the Web. XAF's scaffolding of the database and UI allows you to concentrate on business rules without the many distractions and tedious tasks normally associated with Windows and Web development. XAF's modular design facilitates a plug and play approach to common business requirements such as security and reporting.

XAF's advantages when compared with a more traditional approach to app development are profound. See for yourself and learn why XAF can radically increase productivity and help you bring solutions to market faster than you've ever thought possible.

For more information, visit:

http://www.devexpress.com/Products/NET/Application_Framework/

About


Languages

Language:ASP 51.3%Language:C# 43.9%Language:JavaScript 4.0%Language:CSS 0.8%