Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Class namespace

    In SmartClient.js 8 is it possible to have you own class namespace?

    So instead of creating isc.MyClass, could I do myApp.MyClass? And if so, with multiple levels as well, thus myApp.employees.Search.

    #2
    We've got a similar requirement, in that we would prefer to define our classes in our corporate namespace (e.g. alu.ClassName), rather than the 'isc' namespace.

    This doesn't appear to be possible with SmartClient 8.

    Are there any future plans to add namespace support to SmartClient?

    Comment


      #3
      You can already do this:

      Code:
      window.myNS = {};
      myNS.MyClass = isc.defineClass("myNS_MyClass");
      myNS.MyClass.create({...})
      Just remember that for settings like "editorType" you'll need to use the "myNS_MyClass" version of the className.

      Comment


        #4
        Thanks very much. That's exactly what I'm looking for.

        Comment

        Working...
        X