# EventViewVisibilityRule

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/enums/event-view-visibility-rule


const [open, setOpen] = useState(startOpen);
  return (
    <details {...(open ? { open: true } : {})} className="details" style={{ border:'none', boxShadow:'none', background:'var(--ifm-background-color)' }}>
      <summary
        onClick={(e) => {
          e.preventDefault();
          setOpen((open) => !open);
        }}
        style={{ listStyle:'none' }}
      >
      {open ? dataOpen : dataClose}
      </summary>
      {open && children}
    </details>
  );
};

No description

```graphql
enum EventViewVisibilityRule {
  ALLOWED
  NOT_ALLOWED
}
```

### Values

#### [<code style={{ fontWeight: 'normal' }}>EventViewVisibilityRule.<b>ALLOWED</b></code>](#)  
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>EventViewVisibilityRule.<b>NOT_ALLOWED</b></code>](#)  
> 
> 
> 
> 

### Member Of

[`EventViewVisibility`](/organizer/content-api/graphql-event-api-schema/objects/event-view-visibility)  <Badge class="badge badge--secondary" text="object"/>
